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 |
|---|---|---|---|---|---|---|---|
p00047 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#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) < (b); (i)++)
#define PUSH(n, v) ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#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) < (b); (i)++)
#define PUSH(n, v) ... | [] | 25,908 | 25,909 | u956279155 | cpp |
p00047 | #define scanf_s scanf
//#define gets_s gets
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
#define MIN -1
#define MAX 1000000
int main(void) {
char a, b, x = 'A';
while (scanf_s("%c,%c", &a, &b) != EOF) {
if (a == x)
x = b;
if (b == x)
x = a;
}
... | #define scanf_s scanf
//#define gets_s gets
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
#define MIN -1
#define MAX 1000000
int main(void) {
char a, b, x = 'A';
while (scanf_s("%c,%c", &a, &b) != EOF) {
if (a == x)
x = b;
else if (b == x)
x = a;... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,910 | 25,911 | u187737708 | cpp |
p00047 | #include <iostream>
using namespace std;
int main() {
char c1, c2, delim, ball = 'A';
while (cin >> c1 >> delim >> c2) {
if (c1 == ball)
ball == c2;
else if (c2 == ball)
ball == c1;
}
cout << ball << endl;
} | #include <iostream>
using namespace std;
int main() {
char c1, c2, delim, ball = 'A';
while (cin >> c1 >> delim >> c2) {
if (c1 == ball)
ball = c2;
else if (c2 == ball)
ball = c1;
}
cout << ball << endl;
} | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 25,912 | 25,913 | u403618837 | cpp |
p00047 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
char x, y, now = 'A';
while (scanf("%c,%c", &x, &y) > 0) {
if (now == x)
now = y;
if (now == y)
now = x;
}
cout << now << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
char x, y, now = 'A';
while (scanf("%c,%c", &x, &y) > 0) {
if (now == x)
now = y;
else if (now == y)
now = x;
}
cout << now << endl;
return 0;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,914 | 25,915 | u098161958 | cpp |
p00047 | #include <iostream>
using namespace std;
int main() {
char a, b, c, ans = 'A';
while (cin >> a >> c >> b) {
if (a == 'A' && a == ans) {
if (b == 'B') {
ans = 'B';
}
if (b == 'C') {
ans = 'C';
}
}
if (a == 'B' && a == ans) {
if (b == 'A') {
ans = 'A'... | #include <iostream>
using namespace std;
int main() {
char a, b, c, ans = 'A';
while (cin >> a >> c >> b) {
if (a == 'A' && a == ans) {
if (b == 'B') {
ans = 'B';
}
if (b == 'C') {
ans = 'C';
}
} else if (a == 'B' && a == ans) {
if (b == 'A') {
ans = 'A... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,916 | 25,917 | u374945038 | cpp |
p00047 | #include <iostream>
#include <string>
using namespace std;
int main() {
int cup[3] = {1, 0, 0};
string cupab("A,B");
string cupba("B,A");
string cupac("A,C");
string cupca("C,A");
string cupbc("B,C");
string cupcb("C,C");
string swapping;
while (cin >> swapping) {
int temp;
if (swapping == ... | #include <iostream>
#include <string>
using namespace std;
int main() {
int cup[3] = {1, 0, 0};
string cupab("A,B");
string cupba("B,A");
string cupac("A,C");
string cupca("C,A");
string cupbc("B,C");
string cupcb("C,B");
string swapping;
while (cin >> swapping) {
int temp;
if (swapping == ... | [
"literal.string.change",
"call.arguments.change"
] | 25,918 | 25,919 | u721764417 | cpp |
p00047 | #include <iostream>
using namespace std;
main() {
bool C[3];
C[1] = C[2] = false;
C[0] = true;
char s, t, k;
while (cin >> s >> k >> t)
swap(C[s - 'a'], C[t - 'a']);
if (C[0])
cout << "A" << endl;
if (C[1])
cout << "B" << endl;
if (C[2])
cout << "C" << endl;
} | #include <iostream>
using namespace std;
main() {
bool C[3];
C[1] = C[2] = false;
C[0] = true;
char s, t, k;
while (cin >> s >> k >> t)
swap(C[s - 'A'], C[t - 'A']);
if (C[0])
cout << "A" << endl;
if (C[1])
cout << "B" << endl;
if (C[2])
cout << "C" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 25,921 | 25,922 | u435226340 | cpp |
p00047 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
char c = 'A', x, y;
while (scanf("%c,%c", &x, &y) != EOF) {
if (c == x)
c = y;
if (c == y)
c = x;
}
cout << c << endl;
} | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
char c = 'A', x, y;
while (scanf("%c,%c", &x, &y) != EOF) {
if (c == x) {
c = y;
continue;
}
if (c == y)
c = x;
}
cout << c << endl;
} | [] | 25,923 | 25,924 | u603085888 | cpp |
p00047 | #include <algorithm>
#include <complex>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, c) \
for (__typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#de... | #include <algorithm>
#include <complex>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, c) \
for (__typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#de... | [
"literal.string.change",
"control_flow.loop.condition.change"
] | 25,930 | 25,931 | u505648358 | cpp |
p00047 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define REP(i, a, n) for (int i = a; i < n; i++)
#define rep(i, n) REP(i, 0, n)
typedef long long ll;
void solve() {}
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define REP(i, a, n) for (int i = a; i < n; i++)
#define rep(i, n) REP(i, 0, n)
typedef long long ll;
void solve() {}
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,932 | 25,933 | u642549559 | cpp |
p00047 | #include <cstdio>
using namespace std;
int main() {
char from, to, ball = 'A';
while (scanf("%c%*c%c", &from, &to) != EOF) {
if (ball == from) {
ball = to;
} else if (ball == to) {
ball = from;
}
}
printf("%c\n", ball);
} | #include <cstdio>
using namespace std;
int main() {
char from, to, ball = 'A';
while (scanf("%c,%c", &from, &to) != EOF) {
if (ball == from) {
ball = to;
} else if (ball == to) {
ball = from;
}
}
printf("%c\n", ball);
} | [
"literal.string.change",
"control_flow.loop.condition.change"
] | 25,934 | 25,935 | u706376958 | cpp |
p00047 | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using name... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using name... | [
"assignment.value.change",
"identifier.change"
] | 25,936 | 25,937 | u837172355 | cpp |
p00047 | #include <iostream>
using namespace std;
int main() {
char i1, i2, c;
bool ball[3] = {false};
ball[0] = true;
while (cin >> i1) {
cin >> c;
cin >> i2;
cin >> c;
i1 -= 'A';
i2 -= 'A';
bool tmp = ball[i1];
ball[i1] = ball[i2];
ball[i2] = tmp;
}
c = 0;
while (!ball[c]) {
... | #include <iostream>
using namespace std;
int main() {
char i1, i2, c;
bool ball[3] = {false};
ball[0] = true;
while (cin >> i1) {
cin >> c;
cin >> i2;
i1 -= 'A';
i2 -= 'A';
bool tmp = ball[i1];
ball[i1] = ball[i2];
ball[i2] = tmp;
}
c = 0;
while (!ball[c]) {
c++;
}
co... | [] | 25,938 | 25,939 | u158037864 | cpp |
p00047 | #include <iostream>
using namespace std;
int main() {
int a = 1, b = 0, c = 0, temp;
char x, y;
while (scanf("%c,%c", &x, &y) == 2) {
if (x == 'A') {
temp = a;
if (y == 'B') {
a = b;
b = temp;
} else {
a = c;
c = temp;
}
} else if (x == 'B') {
... | #include <iostream>
using namespace std;
int main() {
int a = 1, b = 0, c = 0, temp;
char x, y;
while (scanf(" %c,%c", &x, &y) == 2) {
// cout << x << y << endl;
if (x == 'A') {
temp = a;
if (y == 'B') {
a = b;
b = temp;
} else {
a = c;
c = temp;
... | [
"literal.string.change",
"control_flow.loop.condition.change"
] | 25,940 | 25,941 | u444904956 | cpp |
p00047 | #include <cstdio>
char boul = 'A';
int main() {
char a, b;
while (scanf("%c,%c", &a, &b) != EOF) {
if (a == boul)
boul = b;
if (b == boul)
boul = a;
getchar();
}
printf("%c\n", boul);
return 0;
} | #include <cstdio>
char boul = 'A';
int main() {
char a, b;
while (scanf("%c,%c", &a, &b) != EOF) {
if (a == boul)
boul = b;
else if (b == boul)
boul = a;
getchar();
}
printf("%c\n", boul);
return 0;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,942 | 25,943 | u898551204 | cpp |
p00047 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int cup[3] = {1, 0, 0};
string str;
while (cin >> str, !cin.eof()) {
swap(cup[str[0] - 'A'], cup[str[2] - 'A']);
}
for (int i = 0; i < 3; i++) {
if (cup[i] == 1)
cout << ('A' + i) << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int cup[3] = {1, 0, 0};
string str;
while (cin >> str, !cin.eof()) {
swap(cup[str[0] - 'A'], cup[str[2] - 'A']);
}
for (int i = 0; i < 3; i++) {
if (cup[i] == 1)
cout << (char)('A' + i) << endl;
}
return 0;
} | [
"type_conversion.add"
] | 25,944 | 25,945 | u946229723 | cpp |
p00047 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char a, b;
int ball[3] = {1, 0, 0};
while (scanf("%c,%c", &a, &b) != EOF) {
swap(ball[a - 'A'], ball[b - 'A']);
}
for (int i = 0; i < 3; ++i) {
if (ball[i])
printf("%c\n", i + 'A');
}
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char a, b;
int ball[3] = {1, 0, 0};
while (scanf(" %c,%c", &a, &b) != EOF) {
swap(ball[a - 'A'], ball[b - 'A']);
}
for (int i = 0; i < 3; ++i) {
if (ball[i])
printf("%c\n", i + 'A');
}
return 0;
} | [
"literal.string.change",
"control_flow.loop.condition.change"
] | 25,946 | 25,947 | u967850487 | cpp |
p00047 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;
#define pu push
#define pb push_back
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;
#define pu push
#define pb push_back
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,948 | 25,949 | u514537648 | cpp |
p00047 | #include <iostream>
using namespace std;
int main(void) {
char p1, p2;
char ten;
char ans = 'A';
while (cin >> p1 >> ten >> p2) {
if (p1 == ans) {
ans = p2;
}
if (p2 == ans) {
ans = p1;
}
}
cout << ans << endl;
return 0;
} |
//今、ボールがどこにあるかだけ考えれば出来る
#include <iostream>
using namespace std;
int main(void) {
char p1, p2;
char ten;
char ans = 'A';
while (cin >> p1 >> ten >> p2) {
if (p1 == ans) {
ans = p2;
} else if (p2 == ans) {
ans = p1;
}
}
cout << ans << endl;
return 0;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,951 | 25,952 | u195155547 | cpp |
p00047 | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
string line;
char ball = 'A';
while (getline(cin, line)) {
stringstream s;
s << line;
char a, b, c;
s >> a >> b >> c;
if (ball == a)
ball = c;
if (ball == c)
ball = a;
}
cout << ball ... | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
string line;
char ball = 'A';
while (getline(cin, line)) {
stringstream s;
s << line;
char a, b, c;
s >> a >> b >> c;
if (ball == a)
ball = c;
else if (ball == c)
ball = a;
}
cout << ... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,955 | 25,956 | u529602958 | cpp |
p00049 | #include <cmath>
#include <stdio.h>
#include <string.h>
int main() {
int a;
char c[10];
int ans[4];
ans[0] = 0;
ans[1] = 0;
ans[2] = 0;
ans[3] = 0;
while (scanf("%d,%s", &a, &c) != EOF) {
if (strcmp(c, "A") == 0) {
ans[0]++;
}
if (strcmp(c, "B") == 0) {
ans[1]++;
}
if (s... | #include <cmath>
#include <stdio.h>
#include <string.h>
int main() {
int a;
char c[10];
int ans[4];
ans[0] = 0;
ans[1] = 0;
ans[2] = 0;
ans[3] = 0;
while (scanf("%d,%s", &a, &c) != EOF) {
if (strcmp(c, "A") == 0) {
ans[0]++;
}
if (strcmp(c, "B") == 0) {
ans[1]++;
}
if (s... | [
"literal.number.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 25,991 | 25,992 | u467175809 | cpp |
p00049 | //
// akjbef.cpp
//
//
// Created by Takuto on 15/6/3.
//
//
#include <cstdio>
int main() {
char in[3];
int a = 0, b = 0, ab = 0, o = 0;
while (EOF != scanf("%*d,%s", in)) {
if (in[1] == '\0')
ab++;
else if (in[0] == 'a')
a++;
else if (in[0] == 'b')
b++;
else
o++;
}... | //
// akjbef.cpp
//
//
// Created by Takuto on 15/6/3.
//
//
#include <cstdio>
int main() {
char in[3];
int a = 0, b = 0, ab = 0, o = 0;
while (EOF != scanf("%*d,%s", in)) {
if (in[1] != '\0')
ab++;
else if (in[0] == 'A')
a++;
else if (in[0] == 'B')
b++;
else
o++;
}... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change"
] | 25,995 | 25,996 | u414351000 | cpp |
p00049 | #include <algorithm>
#include <iostream>
#include <string.h>
using namespace std;
int main() {
int a, e = 0, b = 0, c = 0, d = 0;
char h;
string s;
while (cin >> a >> h >> s) {
if (s == "A")
a++;
if (s == "B")
b++;
if (s == "AB")
c++;
if (s == "O")
d++;
}
cout << a ... | #include <algorithm>
#include <iostream>
#include <string.h>
using namespace std;
int main() {
int a, e = 0, b = 0, c = 0, d = 0;
char h;
string s;
while (cin >> a >> h >> s) {
if (s == "A")
e++;
if (s == "B")
b++;
if (s == "AB")
c++;
if (s == "O")
d++;
}
cout << e <... | [
"identifier.change",
"io.output.change"
] | 25,997 | 25,998 | u296395710 | cpp |
p00049 | #include <algorithm>
#include <iostream>
#include <string.h>
using namespace std;
int main() {
int a, e = 0, b = 0, c = 0, d = 0;
char h;
string s;
while (cin >> a >> h >> s) {
if (s == "A")
e++;
if (s == "B")
b++;
if (s == "AB")
c++;
if (s == "O")
d++;
}
cout << a <... | #include <algorithm>
#include <iostream>
#include <string.h>
using namespace std;
int main() {
int a, e = 0, b = 0, c = 0, d = 0;
char h;
string s;
while (cin >> a >> h >> s) {
if (s == "A")
e++;
if (s == "B")
b++;
if (s == "AB")
c++;
if (s == "O")
d++;
}
cout << e <... | [
"identifier.change",
"io.output.change"
] | 25,999 | 25,998 | u296395710 | cpp |
p00049 | #include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main() {
int N, B[4];
string S;
memset(B, 0, sizeof(B));
while (cin >> N >> S) {
if (S == "A") {
B[0] += 1;
} else if (S == "B") {
B[1] += 1;
} else if (S == "AB") {
B[2] += 1;
} else if (S =... | #include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main() {
int N, B[4];
string S;
memset(B, 0, sizeof(B));
while (cin >> N >> S) {
if (S == ",A") {
B[0] += 1;
} else if (S == ",B") {
B[1] += 1;
} else if (S == ",AB") {
B[2] += 1;
} else if (... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 26,000 | 26,001 | u823513038 | cpp |
p00049 | #include <iostream>
#include <string>
using namespace std;
string S, T[4] = {"A", "B", "O", "AB"};
int x[4], a;
char c;
int main() {
while (cin >> a >> c >> S) {
for (int i = 0; i < 4; i++) {
if (T[i] == S) {
x[i]++;
}
}
}
cout << x[0] << endl << x[1] << endl << x[2] << endl << x[3] <<... | #include <iostream>
#include <string>
using namespace std;
string S, T[4] = {"A", "B", "AB", "O"};
int x[4], a;
char c;
int main() {
while (cin >> a >> c >> S) {
for (int i = 0; i < 4; i++) {
if (T[i] == S) {
x[i]++;
}
}
}
cout << x[0] << endl << x[1] << endl << x[2] << endl << x[3] <<... | [
"literal.string.change"
] | 26,002 | 26,003 | u852311840 | cpp |
p00049 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int a;
string str;
int cou[4] = {0};
while (scanf("%d", &a) != EOF) {
cin >> str;
if (str.size() == 3)
cou[2]++;
else if (str[0] == 'A')
cou[0]++;
else if ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int a;
string str;
int cou[4] = {0};
while (scanf("%d", &a) != EOF) {
cin >> str;
if (str.size() == 3)
cou[2]++;
else if (str[1] == 'A')
cou[0]++;
else if ... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 26,004 | 26,005 | u243365795 | cpp |
p00049 | //
// main.cpp
// AizuOnline
//
// Created by ?????¬ ?????? on 19/05/2016.
// Copyright ?? 2016 ?????¬ ??????. All rights reserved.
//
#include <iostream>
int main(int argc, const char *argv[]) {
int a = 0;
int b = 0;
int ab = 0;
int o = 0;
int k;
char s[5];
while (scanf("%d,%s", &k, s) != EOF) {
... | #include <iostream>
int main(int argc, const char *argv[]) {
int a = 0;
int b = 0;
int ab = 0;
int o = 0;
int k;
char s[5];
while (scanf("%d,%s", &k, s) != EOF) {
if (s[0] == 'A' && s[1] == 'B') {
ab = ab + 1;
} else if (s[0] == 'A') {
a++;
} else if (s[0] == 'B') {
b++;
... | [] | 26,006 | 26,007 | u471771519 | cpp |
p00049 | #include <iostream>
using namespace std;
int main(void) {
// Here your code !
int n, a = 0, b = 0, o = 0, ab = 0;
char c;
string d;
while (cin >> n >> c >> d) {
if (d == "B\0")
b++;
else if (d == "A\0")
a++;
else if (d == "O\0")
o++;
else if (d == "AB\0")
ab++;
}
... | #include <iostream>
using namespace std;
int main(void) {
// Here your code !
int n, a = 0, b = 0, o = 0, ab = 0;
char c;
string d;
while (cin >> n >> c >> d) {
if (d == "B\0")
b++;
else if (d == "A\0")
a++;
else if (d == "O\0")
o++;
else if (d == "AB\0")
ab++;
}
... | [
"identifier.change",
"io.output.change"
] | 26,008 | 26,009 | u168990892 | cpp |
p00049 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
char s[10];
int main() {
int A = 0, B = 0, AB = 0, O = 0;
int n;
while (scanf("%d,%s", &n, s) != EOF) {
if (!strcmp(s, "A"))
A++;
if (!strcmp(s, "B"))
B++;
if (!strcmp(s, "AB"))
AB++;
els... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
char s[10];
int main() {
int A = 0, B = 0, AB = 0, O = 0;
int n;
while (scanf("%d,%s", &n, s) != EOF) {
if (!strcmp(s, "A"))
A++;
else if (!strcmp(s, "B"))
B++;
else if (!strcmp(s, "AB"))
AB+... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 26,013 | 26,014 | u220324665 | cpp |
p00049 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a;
char b;
string c;
int d[4] = {0};
while (cin >> a >> b) {
cin >> c;
if (c == "A") {
d[0] += 1;
} else if (c == "B") {
d[1] += 1;
} else if (c == "O") {
d[2] += 1;
} else if (c == "AB") {
... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a;
char b;
string c;
int d[4] = {0};
while (cin >> a >> b) {
cin >> c;
if (c == "A") {
d[0] += 1;
} else if (c == "B") {
d[1] += 1;
} else if (c == "AB") {
d[2] += 1;
} else if (c == "O") {
... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 26,015 | 26,016 | u988213374 | cpp |
p00049 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[4] = {0}, p = 0, u = 2, q = 0;
string s;
while (cin >> s) {
p++;
if (!q && p >= 10)
u++;
if (s.size() > u + 1)
a[2]++;
else if (s[u] == 'B')
a[1]++;
else if (s[u] == 'O')
a[3]++;
else
a[0]++;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[4] = {0}, p = 0, u = 2, q = 0;
string s;
while (cin >> s) {
p++;
if (!q && p >= 10) {
u++;
q++;
}
if (s.size() > u + 1)
a[2]++;
else if (s[u] == 'B')
a[1]++;
else if (s[u] == 'O')
a[3]++;
els... | [
"expression.unary.arithmetic.add"
] | 26,017 | 26,018 | u962041986 | cpp |
p00049 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define INF 1000000000
#define mod 1000000007
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define INF 1000000000
#define mod 1000000007
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 26,019 | 26,020 | u565812827 | cpp |
p00049 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, a = 0, b = 0, o = 0, ab = 0;
char g;
string x;
while (cin >> n >> g >> x) {
if (x == "A") {
a++;
} else if (x == "B") {
b++;
} else if (x == "O") {
... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, a = 0, b = 0, o = 0, ab = 0;
char g;
string x;
while (cin >> n >> g >> x) {
if (x == "A") {
a++;
} else if (x == "B") {
b++;
} else if (x == "O") {
... | [
"identifier.change",
"io.output.change"
] | 26,021 | 26,022 | u065542086 | cpp |
p00049 | #include <stdio.h>
int main() {
int n, ans[4] = {0, 0, 0, 0};
char a[10] = {'\0'};
while (scanf("%d,%s", &n, a) != EOF) {
if (a[0] == 'B')
ans[1]++;
if (a[0] == 'O')
ans[3]++;
if (a[0] == 'A') {
if (a[1] == 'B')
ans[2]++;
else
ans[0]++;
ans[1] = '\0';
... | #include <stdio.h>
int main() {
int n, ans[4] = {0, 0, 0, 0};
char a[10] = {'\0'};
while (scanf("%d,%s", &n, a) != EOF) {
if (a[0] == 'B')
ans[1]++;
if (a[0] == 'O')
ans[3]++;
if (a[0] == 'A') {
if (a[1] == 'B')
ans[2]++;
else
ans[0]++;
a[1] = '\0';
}
... | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 26,025 | 26,024 | u048151615 | cpp |
p00049 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, A[4];
fill(A, A + 4, 0);
char b[10];
while (scanf("%d,%s ", &n, b) == 2) {
if (b[0] == 'A') {
if (b[1] == 'B') {
A[3]++;
} else {
A[0]++;
}
} else if (b[0] == 'B') {
A[1]++;
} els... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, A[4];
fill(A, A + 4, 0);
char b[10];
while (scanf("%d,%s ", &n, b) == 2) {
if (b[0] == 'A') {
if (b[1] == 'B') {
A[2]++;
} else {
A[0]++;
}
} else if (b[0] == 'B') {
A[1]++;
} els... | [
"literal.number.change",
"variable_access.subscript.index.change"
] | 26,028 | 26,029 | u871901071 | cpp |
p00049 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
vector<int> count(4);
count[0] = 0;
count[1] = 0;
count[2] = 0;
count[3] = 0;
while (cin >> s) {
string::size_type comma = s.find(",");
string bloodtype = s.substr(comma + 1);
if (bloodtype ==... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
vector<int> count(4);
count[0] = 0;
count[1] = 0;
count[2] = 0;
count[3] = 0;
while (cin >> s) {
string::size_type comma = s.find(",");
string bloodtype = s.substr(comma + 1);
if (bloodtype ==... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 26,032 | 26,033 | u874069413 | cpp |
p00049 | #include <cstdio>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int num;
string blood;
char row[1000];
map<string, int> type;
type.insert(make_pair("A", 0));
type.insert(make_pair("B", 0));
type.insert(make_pair("O", 0));
type.insert(make_pair("AB", 0));
whil... | #include <cstdio>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int num;
char blood[100];
char row[1000];
map<string, int> type;
type.insert(make_pair("A", 0));
type.insert(make_pair("B", 0));
type.insert(make_pair("O", 0));
type.insert(make_pair("AB", 0));
w... | [
"variable_declaration.type.change"
] | 26,044 | 26,045 | u946229723 | cpp |
p00049 | #include <cstdio>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int num;
string blood;
char row[1000];
map<string, int> type;
type.insert(make_pair("A", 0));
type.insert(make_pair("B", 0));
type.insert(make_pair("O", 0));
type.insert(make_pair("AB", 0));
whil... | #include <cstdio>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int num;
char blood[2];
char row[1000];
map<string, int> type;
type.insert(make_pair("A", 0));
type.insert(make_pair("B", 0));
type.insert(make_pair("O", 0));
type.insert(make_pair("AB", 0));
whi... | [
"variable_declaration.type.change"
] | 26,044 | 26,046 | u946229723 | cpp |
p00049 | #include <iostream>
#include <string>
using namespace std;
int main() {
int cnt[4];
int n;
string s;
while (cin >> n) {
cin.ignore();
cin >> s;
if (s == "A")
cnt[0]++;
if (s == "B")
cnt[1]++;
if (s == "AB")
cnt[2]++;
if (s == "O")
cnt[3]++;
}
for (int i = 0; ... | #include <iostream>
#include <string>
using namespace std;
int main() {
int cnt[4] = {};
int n;
string s;
while (cin >> n) {
cin.ignore();
cin >> s;
if (s == "A")
cnt[0]++;
if (s == "B")
cnt[1]++;
if (s == "AB")
cnt[2]++;
if (s == "O")
cnt[3]++;
}
for (int i ... | [
"variable_declaration.value.change"
] | 26,047 | 26,048 | u205938947 | cpp |
p00049 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;
#define pu push
#define pb push_back
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;
#define pu push
#define pb push_back
... | [] | 26,051 | 26,052 | u514537648 | cpp |
p00049 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
char blood[2];
int n, type_num[4];
string type[4] = {"A", "B", "C", "AB"};
for (int i = 0; i < 4; i++)
type_num[i] = 0;
while (~scanf("%d,%s ", &n, blood)) {
for (int i = 0; i < 4; i++) {
if (blood == type[i])
typ... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
char blood[2];
int n, type_num[4];
string type[5] = {"A", "B", "AB", "O"};
for (int i = 0; i < 4; i++)
type_num[i] = 0;
while (~scanf("%d,%s ", &n, blood)) {
for (int i = 0; i < 4; i++) {
if (blood == type[i])
typ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change"
] | 26,053 | 26,054 | u107750881 | cpp |
p00049 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int no;
char delim;
string blood;
int A = 0, B = 0, AB = 0, O = 0;
while (cin >> no >> delim >> blood) {
if (blood == "A")
A++;
else if (blood == "B")
A++;
else if (blood == "AB")
AB++;
else if (blood == ... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int no;
char delim;
string blood;
int A = 0, B = 0, AB = 0, O = 0;
while (cin >> no >> delim >> blood) {
if (blood == "A")
A++;
else if (blood == "B")
B++;
else if (blood == "AB")
AB++;
else if (blood == ... | [
"identifier.change"
] | 26,055 | 26,056 | u023846178 | cpp |
p00049 | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include... | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include... | [
"literal.string.change",
"call.arguments.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 26,057 | 26,058 | u609647473 | cpp |
p00048 | #include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main(void) {
double weight[] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91};
double n;
string name[11] = {"lght fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
... | #include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main(void) {
double weight[] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91};
double n;
string name[11] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
... | [
"literal.string.change"
] | 26,085 | 26,084 | u086117092 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n > 91)
cout << "heavy" << endl;
else if (n > 81)
cout << "light heavy" << endl;
else if (n > 75)
cout << "middle" << endl;
else if (n > 69)
cout << "light middle" << endl;
else if ... | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n > 91)
cout << "heavy" << endl;
else if (n > 81)
cout << "light heavy" << endl;
else if (n > 75)
cout << "middle" << endl;
else if (n > 69)
cout << "light middle" << endl;
else if ... | [
"literal.string.change",
"io.output.change"
] | 26,086 | 26,087 | u464972055 | cpp |
p00048 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double r;
while (cin >> r) {
if (r <= 48.00) {
cout << "light fly" << endl;
} else if (r <= 51.00) {
cout << "fly" << endl;
} else if (r <= 54.00) {
cout << "bantam" << endl;
} else if (r <= 57.00) {
... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double r;
while (cin >> r) {
if (r <= 48.00) {
cout << "light fly" << endl;
} else if (r <= 51.00) {
cout << "fly" << endl;
} else if (r <= 54.00) {
cout << "bantam" << endl;
} else if (r <= 57.00) {
... | [
"literal.string.change",
"expression.operation.binary.change"
] | 26,088 | 26,089 | u205938947 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
float input;
while (cin >> input) {
if (input <= 48.00)
cout << "light fly" << endl;
else if (input <= 51.00)
cout << "fly" << endl;
else if (input <= 54.00)
cout << "bantam" << endl;
else if (input <= 57.00)
cout << "fea... | #include <iostream>
using namespace std;
int main() {
float input;
while (cin >> input) {
if (input <= 48.00)
cout << "light fly" << endl;
else if (input <= 51.00)
cout << "fly" << endl;
else if (input <= 54.00)
cout << "bantam" << endl;
else if (input <= 57.00)
cout << "fea... | [
"literal.string.change",
"io.output.change"
] | 26,090 | 26,091 | u228756885 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double h;
while (cin >> h) {
if (h <= 48.000)
cout << "light fly" << endl;
else if (h <= 51.000)
cout << "fly" << endl;
else if (h <= 54.000)
cout << "bantam" << endl;
else if (h <= 57.000)
cout << "feather" << endl;
e... | #include <iostream>
using namespace std;
int main() {
double h;
while (cin >> h) {
if (h <= 48.000)
cout << "light fly" << endl;
else if (h <= 51.000)
cout << "fly" << endl;
else if (h <= 54.000)
cout << "bantam" << endl;
else if (h <= 57.000)
cout << "feather" << endl;
e... | [
"literal.string.change",
"io.output.change",
"expression.operation.binary.change"
] | 26,092 | 26,093 | u754367965 | cpp |
p00048 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string s[11] = {"light fly", "fly", "bantam", "feather",
"light", "light welther", "welter", "light middle",
"middle", "light heavy", "heavy"};
double b[11] = {48, 51, 54, 57, 60, 64, 69, ... | #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 b[11] = {48, 51, 54, 57, 60, 64, 69, 75,... | [
"literal.string.change"
] | 26,094 | 26,095 | u967850487 | cpp |
p00048 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double glam;
while (cin >> glam) {
if (glam < 48.0)
cout << "light fly" << endl;
else if (glam > 48.0 && glam <= 51.0)
cout << "fly" << endl;
else if (glam > 51.0 && glam <= 54.0)
cout << "bantam" << endl;
els... | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double glam;
while (cin >> glam) {
if (glam <= 48.0)
cout << "light fly" << endl;
else if (glam > 48.0 && glam <= 51.0)
cout << "fly" << endl;
else if (glam > 51.0 && glam <= 54.0)
cout << "bantam" << endl;
el... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 26,098 | 26,099 | u127856137 | cpp |
p00048 | #include <stdio.h>
void func(float);
int main(void) {
float tai;
while (scanf("%f", &tai) != EOF) {
func(tai);
}
return 0;
}
void func(float tai) {
float lim[10] = {48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0};
char kai[11][13] = {"light fly", "fly", "bantam", "frather",
... | #include <stdio.h>
void func(float);
int main(void) {
float tai;
while (scanf("%f", &tai) != EOF) {
func(tai);
}
return 0;
}
void func(float tai) {
float lim[10] = {48.0, 51.0, 54.0, 57.0, 60.0, 64.0, 69.0, 75.0, 81.0, 91.0};
char kai[11][13] = {"light fly", "fly", "bantam", "feather",
... | [
"literal.string.change"
] | 26,100 | 26,101 | u774866143 | cpp |
p00048 | #include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
int main() {
double n;
while (scanf("%lf", &n) != EOF) {
if (n <= 48.00)
printf("light fly\n");
else if (48.00 < n && n <= 51.00)
printf("fly\n");
else if (51.00 < n && n <= 54.00)
printf("bantam\n");
els... | #include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
int main() {
double n;
while (scanf("%lf", &n) != EOF) {
if (n <= 48.00)
printf("light fly\n");
else if (48.00 < n && n <= 51.00)
printf("fly\n");
else if (51.00 < n && n <= 54.00)
printf("bantam\n");
els... | [
"expression.operation.binary.remove"
] | 26,103 | 26,104 | u697737442 | cpp |
p00048 | #include <iostream>
#include <string>
using namespace std;
const string cls[] = {"",
"light fly",
"fly",
"bantam",
"feather",
"light",
"light welter",
"welter",
... | #include <iostream>
#include <string>
using namespace std;
const string cls[] = {"",
"light fly",
"fly",
"bantam",
"feather",
"light",
"light welter",
"welter",
... | [] | 26,107 | 26,108 | u553881259 | cpp |
p00048 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str[] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"};
int w[] = {48, 51, 54, 57, 60, 64, 69, 75, 81, ... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str[] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"};
int w[] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 9... | [
"literal.number.change",
"control_flow.loop.condition.change"
] | 26,109 | 26,110 | u912237403 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
char clsnam[11][20] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"};
double CLASS[10] = {48.00, 51.00, 54.00, 57... | #include <iostream>
using namespace std;
int main() {
char clsnam[11][20] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"};
double CLASS[10] = {48.00, 51.00, 54.00, 57... | [
"io.output.newline.add"
] | 26,111 | 26,112 | u032002131 | cpp |
p00050 | #include <stdio.h>
#include <string.h>
int main(void) {
int i;
int len;
char str[1024];
fgets(str, 1024, stdin);
len = strlen(str);
for (i = 0; i < len; i++) {
if (strncmp(&str[i], "apple", 5) == 0) {
strncpy(&str[i], "peach", 5);
}
if (strncmp(&str[i], "peach", 5) == 0) {
strncpy... | #include <stdio.h>
#include <string.h>
int main(void) {
int i;
int len;
char str[1024];
fgets(str, 1024, stdin);
len = strlen(str);
for (i = 0; i < len; i++) {
if (strncmp(&str[i], "apple", 5) == 0) {
strncpy(&str[i], "peach", 5);
} else if (strncmp(&str[i], "peach", 5) == 0) {
strncp... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 26,371 | 26,372 | u494396694 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
int i, mozisu;
string str;
getline(cin, str);
mozisu = str.size();
for (i = 0; i < mozisu - 4; i++) {
if (str[i] == 'a' && str[i + 1] == 'p' && str[i + 2] == 'p' &&
str[i + 3] == 'l' && str[i + 4] == 'e') {
str[i] =... | #include <iostream>
#include <string>
using namespace std;
int main() {
int i, mozisu;
string str;
getline(cin, str);
mozisu = str.size();
for (i = 0; i < mozisu; i++) {
if (str[i] == 'a' && str[i + 1] == 'p' && str[i + 2] == 'p' &&
str[i + 3] == 'l' && str[i + 4] == 'e') {
str[i] = 'p'... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 26,375 | 26,376 | u482061277 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
int i, mozisu;
string str;
getline(cin, str);
mozisu = str.size();
for (i = 0; i < mozisu; i++) {
if (str[i] == 'a' && str[i + 1] == 'p' && str[i + 2] == 'p' &&
str[i + 3] == 'l' && str[i + 4] == 'e') {
str[i] = 'p'... | #include <iostream>
#include <string>
using namespace std;
int main() {
int i, mozisu;
string str;
getline(cin, str);
mozisu = str.size();
for (i = 0; i < mozisu; i++) {
if (str[i] == 'a' && str[i + 1] == 'p' && str[i + 2] == 'p' &&
str[i + 3] == 'l' && str[i + 4] == 'e') {
str[i] = 'p'... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 26,377 | 26,376 | u482061277 | cpp |
p00050 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char input[1001];
cin.getline(input, 1000);
for (int i = 0; input[i] != '\n'; i++) {
if (!strncmp(&input[i], "apple", 5)) {
strncpy(&input[i], "peach", 5);
} else if (!s... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char input[2000];
cin.getline(input, 1000);
for (int i = 0; input[i] != '\0'; i++) {
if (!strncmp(&input[i], "apple", 5)) {
strncpy(&input[i], "peach", 5);
} else if (!s... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 26,380 | 26,381 | u364532954 | cpp |
p00050 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char input[1005];
cin.getline(input, 1000);
for (int i = 0; input[i] != '\n'; i++) {
if (!strncmp(&input[i], "apple", 5)) {
strncpy(&input[i], "peach", 5);
} else if (!s... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char input[2000];
cin.getline(input, 1000);
for (int i = 0; input[i] != '\0'; i++) {
if (!strncmp(&input[i], "apple", 5)) {
strncpy(&input[i], "peach", 5);
} else if (!s... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 26,382 | 26,381 | u364532954 | cpp |
p00050 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char input[2000];
cin.getline(input, 1000);
for (int i = 0; input[i] != '\n'; i++) {
if (!strncmp(&input[i], "apple", 5)) {
strncpy(&input[i], "peach", 5);
} else if (!s... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char input[2000];
cin.getline(input, 1000);
for (int i = 0; input[i] != '\0'; i++) {
if (!strncmp(&input[i], "apple", 5)) {
strncpy(&input[i], "peach", 5);
} else if (!s... | [
"literal.string.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 26,383 | 26,381 | u364532954 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s)) {
for (int i = 0; i < s.size() - 4; i++) {
if (s[i] == 'a') {
if (s[i + 1] == 'p') {
if (s[i + 2] == 'p') {
if (s[i + 3] == 'l') {
if (s[i + 4] == 'e') {... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s)) {
for (int i = 0; i < s.size() - 4; i++) {
if (s[i] == 'a') {
if (s[i + 1] == 'p') {
if (s[i + 2] == 'p') {
if (s[i + 3] == 'l') {
if (s[i + 4] == 'e') {... | [] | 26,384 | 26,385 | u373988530 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
for (int i = 0; i < s.length(); i++) {
if (s.substr(i + 1, 4) == "apple")
s.replace(i, 5, "peach");
else if (s.substr(i + 1, 4) == "peach")
s.replace(i, 5, "apple");
}
cout << s << endl;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
for (int i = 0; i < s.length(); i++) {
if (s.substr(i, 5) == "apple")
s.replace(i, 5, "peach");
else if (s.substr(i, 5) == "peach")
s.replace(i, 5, "apple");
}
cout << s << endl;
retur... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 26,398 | 26,399 | u228756885 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
for (int i = 0; i < s.length(); i++) {
if (s.substr(i + 1, 5) == "apple")
s.replace(i, 5, "peach");
else if (s.substr(i + 1, 5) == "peach")
s.replace(i, 5, "apple");
}
cout << s << endl;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
for (int i = 0; i < s.length(); i++) {
if (s.substr(i, 5) == "apple")
s.replace(i, 5, "peach");
else if (s.substr(i, 5) == "peach")
s.replace(i, 5, "apple");
}
cout << s << endl;
retur... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 26,400 | 26,399 | u228756885 | cpp |
p00050 | #include <bits/stdc++.h>
#define rep(i, l, n) for (int i = l; i < n; i++)
#define rer(i, l, n) for (int i = l; i <= n; i++)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef vector<int> vint;
... | #include <bits/stdc++.h>
#define rep(i, l, n) for (int i = l; i < n; i++)
#define rer(i, l, n) for (int i = l; i <= n; i++)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef vector<int> vint;
... | [
"literal.string.change",
"literal.number.change",
"call.arguments.change"
] | 26,408 | 26,409 | u188938853 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
string s;
int main() {
cin >> s;
for (int i = 0; i < s.size() - 4; i++) {
string t = s.substr(i, 5);
if (t == "apple")
s.replace(s.begin() + i, s.begin() + i + 5, "peach");
if (t == "peach")
s.replace(s.begin() + i, s.begin() + i + 5... | #include <iostream>
#include <string>
using namespace std;
string s;
int main() {
getline(cin, s);
for (int i = 0; i < s.size() - 4; i++) {
string t = s.substr(i, 5);
if (t == "apple")
s.replace(s.begin() + i, s.begin() + i + 5, "peach");
if (t == "peach")
s.replace(s.begin() + i, s.begin() ... | [
"call.add",
"expression.operation.binary.change",
"call.arguments.change"
] | 26,412 | 26,413 | u823513038 | cpp |
p00050 | #include "bits/stdc++.h"
#include <unordered_map>
#include <unordered_set>
#pragma warning(disable : 4996)
using namespace std;
using ld = long double;
template <class t> using table = vector<vector<t>>;
const ld eps = 1e-9;
//// < "d:\d_download\visual studio
///2015\projects\programing_contest_c++\debug\a.txt" > "d:... | #include "bits/stdc++.h"
#include <unordered_map>
#include <unordered_set>
#pragma warning(disable : 4996)
using namespace std;
using ld = long double;
template <class t> using table = vector<vector<t>>;
const ld eps = 1e-9;
//// < "d:\d_download\visual studio
///2015\projects\programing_contest_c++\debug\a.txt" > "d:... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 26,418 | 26,419 | u186082958 | cpp |
p00050 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
char str[101];
fgets(str, sizeof(str), stdin);
for (int i = 0; i < 1000; i++) {
if (str[i] == 'p' && str[i + 1] == 'e' && str[i + 2] == 'a' &&
str[i + 3] == 'c' && str[i + 4] == 'h') {
str[i] = 'a';
... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
char str[1001];
fgets(str, sizeof(str), stdin);
for (int i = 0; i < 1000; i++) {
if (str[i] == 'p' && str[i + 1] == 'e' && str[i + 2] == 'a' &&
str[i + 3] == 'c' && str[i + 4] == 'h') {
str[i] = 'a';
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operation.binary.remove"
] | 26,422 | 26,423 | u458808208 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
string sa;
getline(cin, sa);
int z = sa.size();
for (int i = 0; i < z - 4; i++) {
string sb = sa.substr(i, 7);
if (sb == "apple") {
sa.replace(i, 5, "peach");
}
if (sb == "peach") {
sa.replace(i, 5, "apple");
... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string sa;
getline(cin, sa);
int z = sa.size();
for (int i = 0; i < z - 4; i++) {
string sb = sa.substr(i, 5);
if (sb == "apple") {
sa.replace(i, 5, "peach");
}
if (sb == "peach") {
sa.replace(... | [
"import.add",
"literal.number.change",
"call.arguments.change"
] | 26,429 | 26,430 | u705334572 | cpp |
p00050 | #include <bits/stdc++.h>
using namespace std;
int main() {
string apple = "apple", peach = "peach";
int n = 0;
string str[1000];
while (cin >> str[n]) {
for (int i = 0; i < str[n].size(); i++) {
if (str[n].substr(i, 5) == apple) {
for (int j = 0; j < apple.size(); j++) {
str[n][i ... | #include <bits/stdc++.h>
using namespace std;
int main() {
string apple = "apple", peach = "peach";
int n = 0;
string str[1000];
while (cin >> str[n]) {
for (int i = 0; i < str[n].size(); i++) {
if (str[n].substr(i, 5) == apple) {
for (int j = 0; j < peach.size(); j++) {
str[n][i ... | [
"control_flow.loop.for.remove",
"control_flow.branch.if.add",
"assignment.add"
] | 26,442 | 26,443 | u670914305 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
getline(cin, str);
for (int i = 0; i < str.size() - 5; i++) {
if (str.substr(i, 5) == "apple") {
str.replace(i, 5, "peach");
continue;
}
if (str.substr(i, 5) == "peach") {
str.replace(i, 5, "apple")... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
getline(cin, str);
for (int i = 0; i < str.size() - 4; i++) {
if (str.substr(i, 5) == "apple") {
str.replace(i, 5, "peach");
continue;
}
if (str.substr(i, 5) == "peach") {
str.replace(i, 5, "apple")... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 26,446 | 26,447 | u869600431 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
main() {
char data[2000];
int size;
for (int i = 0; i < 2000; i++) {
scanf("%c", &data[i]);
if (data[i] == '\n') {
int size = i;
break;
}
}
for (int i = 4; i < size; i++) {
if (data[i - 4] == 'a' && data[i - 3] == 'p' && ... | #include <iostream>
#include <string>
using namespace std;
main() {
char data[2000];
int size;
for (int i = 0; i < 2000; i++) {
scanf("%c", &data[i]);
if (data[i] == '\n') {
size = i;
break;
}
}
for (int i = 4; i < size; i++) {
if (data[i - 4] == 'a' && data[i - 3] == 'p' && data... | [
"literal.number.change",
"assignment.value.change"
] | 26,450 | 26,451 | u622083648 | cpp |
p00050 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
char map[2][6] = {"apple", "peach"};
char c[10000] = {0};
for (int i = 0; i < 1000; i++) {
c[i] = getchar();
if (c[i] == '\n')
break;
}
for (int i = 0; i < 1000; i++) {
if (c[i] =... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
char map[2][6] = {"apple", "peach"};
char c[10000] = {0};
for (int i = 0; i < 1000; i++) {
c[i] = getchar();
if (c[i] == '\n')
break;
}
for (int i = 0; i < 1000; i++) {
if (c[i] =... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 26,458 | 26,459 | u898551204 | cpp |
p00050 | #include <cctype>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char cc[1000];
cin.getline(cc, 1000);
for (int i = 0; i < strlen(cc); i++) {
if (cc[i] == 'a' && cc[i + 1] == 'p' && cc[i + 2] == 'p' &&
cc[i + 3] == 'l' && cc[i + 4] == 'e') {
cc[i] = 'p';
cc[i + 1]... | #include <cctype>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char cc[1000];
cin.getline(cc, 1000);
for (int i = 0; i < strlen(cc); i++) {
if (cc[i] == 'a' && cc[i + 1] == 'p' && cc[i + 2] == 'p' &&
cc[i + 3] == 'l' && cc[i + 4] == 'e') {
cc[i] = 'p';
cc[i + 1]... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 26,464 | 26,465 | u754367965 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
int t;
while (cin >> t) {
int res = 0;
for (int i = 5; i < t; i *= 5) {
res += t / i;
}
cout << res << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int t;
while (cin >> t, t) {
int res = 0;
for (int i = 5; i <= t; i *= 5) {
res += t / i;
}
cout << res << endl;
}
return 0;
} | [
"control_flow.loop.condition.change",
"expression.operator.compare.change"
] | 26,638 | 26,639 | u398354652 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
int t;
while (cin >> t) {
int res = 0;
for (int i = 5; i <= t; i *= 5) {
res += t / i;
}
cout << res << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int t;
while (cin >> t, t) {
int res = 0;
for (int i = 5; i <= t; i *= 5) {
res += t / i;
}
cout << res << endl;
}
return 0;
} | [
"control_flow.loop.condition.change"
] | 26,640 | 26,639 | u398354652 | cpp |
p00052 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
while (1) {
cin >> n;
if (n == 0)
break;
int cnt = 0;
for (int i = 5; i < n; i *= 5) {
cnt += n / i;
}
cou... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
while (1) {
cin >> n;
if (n == 0)
break;
int cnt = 0;
for (int i = 5; i <= n; i *= 5) {
cnt += n / i;
}
co... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,650 | 26,651 | u700120734 | cpp |
p00052 | #include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = ... | #include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = ... | [] | 26,657 | 26,658 | u452958267 | cpp |
p00052 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#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) < (b); (i)++)
#define PUSH(n, v) ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#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) < (b); (i)++)
#define PUSH(n, v) ... | [
"control_flow.loop.condition.change"
] | 26,659 | 26,660 | u956279155 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
int n;
int co = 0;
while (cin >> n) {
while (n > 4) {
n /= 5;
co += n;
}
cout << co << endl;
co = 0;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n;
int co = 0;
while (cin >> n && n != 0) {
while (n > 4) {
n /= 5;
co += n;
}
cout << co << endl;
co = 0;
}
return 0;
} | [
"control_flow.loop.condition.change"
] | 26,661 | 26,662 | u705334572 | cpp |
p00052 | #include <stdio.h>
int max(int a, int b) {
if (a > b)
return a;
return b;
}
int main() {
int n, a, b, temp;
while (1) {
scanf("%d", &n);
if (n == 0)
return 0;
a = b = 0;
for (int i = 2; i < n; i++) {
temp = i;
while (temp % 2 == 0) {
temp /= 2;
a++;
}
... | #include <stdio.h>
int min(int a, int b) {
if (a < b)
return a;
return b;
}
int main() {
int n, a, b, temp;
while (1) {
scanf("%d", &n);
if (n == 0)
return 0;
a = b = 0;
for (int i = 2; i <= n; i++) {
temp = i;
while (temp % 2 == 0) {
temp /= 2;
a++;
}... | [
"misc.opposites",
"identifier.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.condition.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 26,669 | 26,670 | u048151615 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
int n, m, a, i;
while (cin >> n) {
for (a = i = 0, m = 5; i < 13; i++, m *= 5) {
a += n / m;
}
cout << a << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int n, m, a, i;
while (cin >> n, n) {
for (a = i = 0, m = 5; i < 13; i++, m *= 5) {
a += n / m;
}
cout << a << endl;
}
} | [
"control_flow.loop.condition.change"
] | 26,671 | 26,672 | u869600431 | cpp |
p00052 | #include <iostream>
using namespace std;
int judge(int num) {
int count = 0;
int n = 5;
while (n < num) {
count += num / n;
n = n * 5;
}
return count;
}
int main() {
int n;
while (cin >> n) {
if (n == 0)
break;
cout << judge(n) << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int judge(int num) {
int count = 0;
int n = 5;
while (n <= num) {
count += num / n;
n = n * 5;
}
return count;
}
int main() {
int n;
while (cin >> n) {
if (n == 0)
break;
cout << judge(n) << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,673 | 26,674 | u551847319 | cpp |
p00052 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n;
while (cin >> n) {
if (n <= 4)
cout << 0 << endl;
else {
int sum = 0;
for (ll i = 5; i <= n; i *= 5) {
sum += n / i;
}
cout << sum << endl;
}... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n;
while (cin >> n && n != 0) {
if (n <= 4)
cout << 0 << endl;
else {
int sum = 0;
for (ll i = 5; i <= n; i *= 5) {
sum += n / i;
}
cout << sum << e... | [
"control_flow.loop.condition.change"
] | 26,675 | 26,676 | u266871004 | cpp |
p00052 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
while (true) {
int n;
scanf("%d\n", &n);
if (n == 0)
... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
while (true) {
int n;
scanf("%d\n", &n);
if (n == 0)
... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,677 | 26,678 | u660774699 | cpp |
p00052 | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
while (true) {
int n, m, c2 = 0, c5 = 0;
cin >> n;
if (cin.eof())
break;
for (int i = 1; i <= n; i++) {
m = i;
while (m % 2 == 0) {
m /= 2;
c2++;
}
while (m % 5 == 0) {
... | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
while (true) {
int n, m, c2 = 0, c5 = 0;
cin >> n;
if (n == 0)
break;
for (int i = 1; i <= n; i++) {
m = i;
while (m % 2 == 0) {
m /= 2;
c2++;
}
while (m % 5 == 0) {
m... | [
"call.arguments.change"
] | 26,679 | 26,680 | u310778860 | cpp |
p00052 | #include <iostream>
using namespace std;
long long int fact5(int n) { return (n == 1) ? 5 : 5 * fact5(n - 1); }
int main() {
long long int n;
while (cin >> n) {
if (n == 0)
break;
int ans = 0;
for (int i = 1; fact5(i) < n; i++) {
ans += (n / fact5(i));
}
cout << ans << endl;
}
r... | #include <iostream>
using namespace std;
long long int fact5(long long int n) { return (n == 1) ? 5 : 5 * fact5(n - 1); }
int main() {
long long int n;
while (cin >> n) {
if (n == 0)
break;
int ans = 0;
for (int i = 1; fact5(i) <= n; i++) {
ans += (n / fact5(i));
}
cout << ans << en... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,681 | 26,682 | u977061810 | cpp |
p00052 | #include <iostream>
using namespace std;
long long int fact5(long long int n) { return (n == 1) ? 5 : 5 * fact5(n - 1); }
int main() {
long long int n;
while (cin >> n) {
if (n == 0)
break;
int ans = 0;
for (int i = 1; fact5(i) < n; i++) {
ans += (n / fact5(i));
}
cout << ans << end... | #include <iostream>
using namespace std;
long long int fact5(long long int n) { return (n == 1) ? 5 : 5 * fact5(n - 1); }
int main() {
long long int n;
while (cin >> n) {
if (n == 0)
break;
int ans = 0;
for (int i = 1; fact5(i) <= n; i++) {
ans += (n / fact5(i));
}
cout << ans << en... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,683 | 26,682 | u977061810 | cpp |
p00052 | #include <iostream>
int main() {
int n;
while (1) {
std::cin >> n;
if (!n)
break;
int ans = 0;
while (n > 5) {
ans += n / 5;
n /= 5;
}
std::cout << ans << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int n;
while (1) {
std::cin >> n;
if (!n)
break;
int ans = 0;
while (n >= 5) {
ans += n / 5;
n /= 5;
}
std::cout << ans << std::endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,684 | 26,685 | u450407555 | cpp |
p00052 | #include <iostream>
#include <vector>
using namespace std;
void solve() {
int num;
while (cin >> num) {
if (num == 0) {
break;
}
int multipleOfFive = 5;
vector<int> Vec;
while (num > multipleOfFive) {
Vec.push_back(multipleOfFive);
multipleOfFive *= 5;
}
int ans = 0;
... | #include <iostream>
#include <vector>
using namespace std;
void solve() {
int num;
while (cin >> num) {
if (num == 0) {
break;
}
int multipleOfFive = 5;
vector<int> Vec;
while (num >= multipleOfFive) {
Vec.push_back(multipleOfFive);
multipleOfFive *= 5;
}
int ans = 0;... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,686 | 26,687 | u579833671 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
int in;
while (cin >> in, !cin.eof()) {
int ans = 0, buf = in;
while (buf >= 5) {
buf /= 5;
ans += buf;
}
cout << ans << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int in;
while (cin >> in, in != 0) {
int ans = 0, buf = in;
while (buf >= 5) {
buf /= 5;
ans += buf;
}
cout << ans << endl;
}
return 0;
} | [
"call.remove"
] | 26,688 | 26,689 | u946229723 | cpp |
p00052 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
vector<int> zeronum;
zeronum.push_back(0);
int count = 0;
for (int i = 1; i <= 10000; i++) {
... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
vector<int> zeronum;
zeronum.push_back(0);
int count = 0;
for (int i = 1; i <= 20000; i++) {
... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 26,697 | 26,696 | u463431521 | cpp |
p00052 | #include <iostream>
using namespace std;
int main(void) {
long long int n;
while (cin >> n, n) {
long long int ans = 0;
for (long long int i = 5; i < n; i *= 5)
ans += n / i;
cout << ans << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
long long int n;
while (cin >> n, n) {
long long int ans = 0;
for (long long int i = 5; i <= n; i *= 5)
ans += n / i;
cout << ans << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,698 | 26,699 | u365178144 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
long get;
int sum = 0;
while (cin >> get) {
if (get == 0)
break;
int tmp = 0;
for (int i = 5; i < get; i *= 5) {
tmp = get % i;
sum += ((get - tmp) / i);
}
cout << sum << endl;
sum = 0;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
long get;
int sum = 0;
while (cin >> get) {
if (get == 0)
break;
int tmp = 0;
for (int i = 5; i <= get; i *= 5) {
tmp = get % i;
sum += ((get - tmp) / i);
}
cout << sum << endl;
sum = 0;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,700 | 26,701 | u032002131 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
int get;
while (cin >> get) {
if (get == 0)
break;
int sum = 0;
for (int i = 5; i < get; i *= 5) {
sum += (get / i);
}
cout << sum << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
long get;
while (cin >> get) {
if (get == 0)
break;
int sum = 0;
for (int i = 5; i <= get; i *= 5) {
sum += (get / i);
}
cout << sum << endl;
}
return 0;
} | [
"variable_declaration.type.primitive.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,702 | 26,703 | u032002131 | cpp |
p00052 | #include <iostream>
using namespace std;
int main() {
long get;
while (cin >> get) {
if (get == 0)
break;
int sum = 0;
for (int i = 5; i < get; i *= 5) {
sum += (get / i);
}
cout << sum << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
long get;
while (cin >> get) {
if (get == 0)
break;
int sum = 0;
for (int i = 5; i <= get; i *= 5) {
sum += (get / i);
}
cout << sum << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 26,704 | 26,703 | u032002131 | cpp |
p00050 | #include <iostream>
#include <string>
using namespace std;
int main() {
string in;
getline(cin, in);
for (int i = 0; i < in.size() - 4; i++) {
if (in[i] == 'a' && in[i + 1] == 'p' && in[i + 2] == 'p' &&
in[i + 3] == 'l' && in[i + 4] == 'e') {
in[i] = 'p';
in[i + 1] = 'e';
in[i + 2]... | #include <iostream>
#include <string>
using namespace std;
int main() {
string in;
getline(cin, in);
for (int i = 0; i < in.size() - 4; i++) {
if (in[i] == 'a' && in[i + 1] == 'p' && in[i + 2] == 'p' &&
in[i + 3] == 'l' && in[i + 4] == 'e') {
in[i] = 'p';
in[i + 1] = 'e';
in[i + 2]... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 26,707 | 26,708 | u171548894 | cpp |
p00051 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
vector<int> a;
for (int j = 0; j < s.size(); j++)
a.push_back(s[i] - '0');
sort(a.begin(), a.end());
int mi = 0, ma = 0;
for (int j = 0; j < s.size(); j+... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
vector<int> a;
for (int j = 0; j < s.size(); j++)
a.push_back(s[j] - '0');
sort(a.begin(), a.end());
int mi = 0, ma = 0;
for (int j = 0; j < s.size(); j+... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.variable.change",
"assignment.value.change"
] | 26,788 | 26,789 | u243689028 | cpp |
p00051 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int ret[8];
cin >> n;
while (n-- > 0) {
string s;
cin >> s;
for (int i = 0; i < 8; i++)
ret[i] = s[i - '0'];
int Min = 0, Max = 0;
sort(ret, ret + 8);
for (int i = ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int ret[8];
cin >> n;
while (n-- > 0) {
string s;
cin >> s;
for (int i = 0; i < 8; i++)
ret[i] = s[i] - '0';
int Min = 0, Max = 0;
sort(ret, ret + 8);
for (int i = ... | [] | 26,790 | 26,791 | u373988530 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.