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 |
|---|---|---|---|---|---|---|---|
p00013 | #include <iostream>
using namespace std;
int main() {
int k = 0, b;
int a[100000000];
while (cin >> b) {
if (b != 0) {
a[k] = b;
k = k + 1;
}
if (b == 0) {
cout << a[k - 1] << endl;
k = k - 1;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k = 0, b;
int a[1000000];
while (cin >> b) {
if (b != 0) {
a[k] = b;
k = k + 1;
}
if (b == 0) {
cout << a[k - 1] << endl;
k = k - 1;
}
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 13,862 | 13,861 | u835414158 | cpp |
p00013 | #include <iostream>
#include <stack>
using namespace std;
int main() {
int a;
stack<int> syaryo;
while (cin >> a) {
cin >> a;
if (a != 0) {
syaryo.push(a);
}
else {
cout << syaryo.top() << endl;
syaryo.pop();
}
}
return 0;
} | #include <iostream>
#include <stack>
using namespace std;
int main() {
int a;
stack<int> syaryo;
while (cin >> a) {
if (a != 0) {
syaryo.push(a);
}
else {
cout << syaryo.top() << endl;
syaryo.pop();
}
}
return 0;
} | [] | 13,863 | 13,864 | u482061277 | cpp |
p00013 | #include <iostream>
#include <stack>
using namespace std;
int main() {
stack<char> stk;
char c;
while (cin >> c) {
if (c == '0') {
cout << stk.top() << endl;
stk.pop();
} else {
stk.push(c);
}
}
return 0;
} | #include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> stk;
int c;
while (cin >> c) {
if (c == 0) {
cout << stk.top() << endl;
stk.pop();
} else {
stk.push(c);
}
}
return 0;
} | [
"variable_declaration.type.primitive.change",
"control_flow.branch.if.condition.change"
] | 13,871 | 13,872 | u462353826 | cpp |
p00012 | #include <complex>
#include <iostream>
using namespace std;
double cross(complex<double> A, complex<double> B) {
return (conj(A) * B).imag();
}
int main() {
complex<double> Points[3], P;
while (true) {
double x, y;
for (int i = 0; i < 3; i++) {
cin >> x >> y;
Points[i] = {x, y};
}
c... | #include <complex>
#include <iostream>
using namespace std;
double cross(complex<double> A, complex<double> B) {
return (conj(A) * B).imag();
}
int main() {
complex<double> Points[3], P;
while (1) {
double x, y;
for (int i = 0; i < 3; i++) {
cin >> x >> y;
Points[i] = {x, y};
}
cin >... | [
"control_flow.loop.condition.change",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 13,960 | 13,961 | u411559868 | cpp |
p00012 | #include <complex>
#include <iostream>
using namespace std;
double cross(complex<double> A, complex<double> B) {
return (conj(A) * B).imag();
}
int main() {
complex<double> Points[3], P;
while (true) {
double x, y;
for (int i = 0; i < 3; i++) {
cin >> x >> y;
Points[i] = {x, y};
}
ci... | #include <complex>
#include <iostream>
using namespace std;
double cross(complex<double> A, complex<double> B) {
return (conj(A) * B).imag();
}
int main() {
complex<double> Points[3], P;
while (1) {
double x, y;
for (int i = 0; i < 3; i++) {
cin >> x >> y;
Points[i] = {x, y};
}
cin >... | [
"control_flow.loop.condition.change",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 13,962 | 13,961 | u411559868 | cpp |
p00012 | // includes
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
#include ... | // includes
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
#include ... | [
"identifier.change",
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 13,963 | 13,964 | u199259534 | cpp |
p00012 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
struct vector2D {
double x, y;
vector2D(double x, double y) {
this->x = x;
this->y = y;... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
struct vector2D {
double x, y;
vector2D(double x, double y) {
this->x = x;
this->y = y;... | [
"identifier.change",
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 13,965 | 13,966 | u443673068 | cpp |
p00012 | #include "bits/stdc++.h"
#include <cassert>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define all(a) (a).begin(), (a).end()
#define vi vector<int>
#define pb push_back
#define INF 999999999
//#define INF (1LL<<59)
#define EPS (1e-10)
class... | #include "bits/stdc++.h"
#include <cassert>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define all(a) (a).begin(), (a).end()
#define vi vector<int>
#define pb push_back
#define INF 999999999
//#define INF (1LL<<59)
#define EPS (1e-10)
class... | [
"control_flow.branch.if.condition.change"
] | 13,969 | 13,970 | u542962065 | cpp |
p00012 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define swap(a, b) tmp = ver[b], ver[b] = ver[a], ver[a] = tmp;
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
double p, q, r;
while (cin >> x1 >> ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define swap(a, b) tmp = ver[b], ver[b] = ver[a], ver[a] = tmp;
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
double p, q, r;
while (cin >> x1 >> ... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 13,971 | 13,972 | u502329480 | cpp |
p00012 | #include <algorithm>
#include <array>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <utility>
using namespace std;
typedef long long Int;
#define REP(i, x) for (int i = 0; i < x; ++i)
typedef pair<int, int> P;
struct point {
double x, y;
};
... | #include <algorithm>
#include <array>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <utility>
using namespace std;
typedef long long Int;
#define REP(i, x) for (int i = 0; i < x; ++i)
typedef pair<int, int> P;
struct point {
double x, y;
};
... | [
"function.return_type.change",
"expression.operation.binary.remove"
] | 13,975 | 13,976 | u520706050 | cpp |
p00012 | #include <iostream>
using namespace std;
typedef struct myvector {
double x;
double y;
} Vector;
Vector sub_vector(Vector &a, Vector &b) {
Vector ret;
ret.x = b.x - a.x;
ret.y = b.y - a.y;
return ret;
}
double cross_product(Vector &a, Vector &b) { return a.x * b.y - b.x * a.y; }
int main() {
Vector A,... | #include <iostream>
using namespace std;
typedef struct myvector {
double x;
double y;
} Vector;
Vector sub_vector(Vector &a, Vector &b) {
Vector ret;
ret.x = b.x - a.x;
ret.y = b.y - a.y;
return ret;
}
double cross_product(Vector &a, Vector &b) { return a.x * b.y - b.x * a.y; }
int main() {
Vector A,... | [
"control_flow.branch.if.condition.change"
] | 13,977 | 13,978 | u981364540 | cpp |
p00012 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
using namespace std;
#define FOR(i, n) for (int i = 0; i < n; i++)
#define bit(i) static_cast<bitset<8>>(i)
typedef long long ll;
typedef unsigned long lo... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
using namespace std;
#define FOR(i, n) for (int i = 0; i < n; i++)
#define bit(i) static_cast<bitset<8>>(i)
typedef long long ll;
typedef unsigned long lo... | [
"expression.operator.arithmetic.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 13,982 | 13,983 | u693762292 | cpp |
p00012 | #include <bits/stdc++.h>
using namespace std;
namespace geometry {
typedef double D;
typedef complex<D> P;
typedef pair<P, P> S;
typedef S L;
typedef pair<P, D> C;
#define EPS (1e-10)
#define EQ(a, b) (abs((a) - (b)) < EPS)
#define EQV(a, b) (EQ((a).real(), (b).real()) && EQ((a).imag(), (b).imag()))
static const in... | #include <bits/stdc++.h>
using namespace std;
namespace geometry {
typedef double D;
typedef complex<D> P;
typedef pair<P, P> S;
typedef S L;
typedef pair<P, D> C;
#define EPS (1e-10)
#define EQ(a, b) (abs((a) - (b)) < EPS)
#define EQV(a, b) (EQ((a).real(), (b).real()) && EQ((a).imag(), (b).imag()))
static const in... | [
"expression.operation.unary.bitwise.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 13,984 | 13,985 | u334031393 | cpp |
p00012 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
bool flag;
double x1, yt1, x2, y2, x3, y3, xp, yp;
double v[3][2];
double inpr(double v... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
bool flag;
double x1, yt1, x2, y2, x3, y3, xp, yp;
double v[3][2];
double inpr(double v... | [
"expression.operation.binary.add"
] | 13,986 | 13,987 | u858901574 | cpp |
p00012 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.remove"
] | 13,988 | 13,989 | u047988051 | cpp |
p00012 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | [
"expression.operation.binary.remove"
] | 13,990 | 13,989 | u047988051 | cpp |
p00012 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.remove"
] | 13,988 | 13,991 | u047988051 | cpp |
p00012 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | [
"expression.operation.binary.remove"
] | 13,990 | 13,991 | u047988051 | cpp |
p00012 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
double EPS = 1e-10;
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b)))
return 0;
return a + b;
}
struct point {
double x, y;
point() {}
point(do... | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add"
] | 13,992 | 13,991 | u047988051 | cpp |
p00012 | #include <iostream>
using namespace std;
struct Vector {
double x;
double y;
};
Vector sub_vector(Vector &a, Vector &b) {
Vector ret;
ret.x = a.x - b.x;
ret.y = a.y - b.y;
return ret;
}
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
Vector v[4];
while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >... | #include <iostream>
using namespace std;
struct Vector {
double x;
double y;
};
Vector sub_vector(Vector &a, Vector &b) {
Vector ret;
ret.x = a.x - b.x;
ret.y = a.y - b.y;
return ret;
}
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
Vector v[4];
while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 13,993 | 13,994 | u822202919 | cpp |
p00012 | #include <iostream>
using namespace std;
struct Vector {
double x;
double y;
};
Vector sub_vector(Vector &a, Vector &b) {
Vector ret;
ret.x = a.x - b.x;
ret.y = a.y - b.y;
return ret;
}
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
Vector v[4];
while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >... | #include <iostream>
using namespace std;
struct Vector {
double x;
double y;
};
Vector sub_vector(Vector &a, Vector &b) {
Vector ret;
ret.x = a.x - b.x;
ret.y = a.y - b.y;
return ret;
}
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
Vector v[4];
while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 13,995 | 13,994 | u822202919 | cpp |
p00012 | #include <bits/stdc++.h>
using namespace std;
class D3 {
public:
double x;
double y;
double z;
//?????????????????????
D3(double x_ = 0.0, double y_ = 0.0, double z_ = 0.0) {
x = x_;
y = y_;
z = z_;
}
//??????
D3 Cross_product(D3 partner) {
D3 ret(y * partner.z - z * partner.y, z * p... | #include <bits/stdc++.h>
using namespace std;
class D3 {
public:
double x;
double y;
double z;
//?????????????????????
D3(double x_ = 0.0, double y_ = 0.0, double z_ = 0.0) {
x = x_;
y = y_;
z = z_;
}
//??????
D3 Cross_product(D3 partner) {
D3 ret(y * partner.z - z * partner.y, z * p... | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 13,998 | 13,999 | u018134297 | cpp |
p00012 | //#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
//#include <stdio.h>
//#include <stdlib.h>
//#include <iomanip>
//#include <vector>
//#include <string>
//#include <algorithm>
//#include <functional>
//#include <time.h>
//#include <sstream>
//#include <queue>
using namespace std;
int main() {
doubl... | //#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
//#include <stdio.h>
//#include <stdlib.h>
//#include <iomanip>
//#include <vector>
//#include <string>
//#include <algorithm>
//#include <functional>
//#include <time.h>
//#include <sstream>
//#include <queue>
using namespace std;
int main() {
doubl... | [
"assignment.add"
] | 14,000 | 14,001 | u740053229 | cpp |
p00012 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double x[3], y[3], px, py;
while (cin >> x[0] >> y[0]) {
for (int i = 1; i < 3; i++)
cin >> x[i] >> y[i];
cin >> px >> py;
bool ok = true;
for (int i = 0; i < 3; i++) {
bool plus = false;
if (x[(i + 1) % 3] ... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double x[3], y[3], px, py;
while (cin >> x[0] >> y[0]) {
for (int i = 1; i < 3; i++)
cin >> x[i] >> y[i];
cin >> px >> py;
bool ok = true;
for (int i = 0; i < 3; i++) {
bool plus = false;
if (x[(i + 1) % 3] ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 14,006 | 14,007 | u455494700 | cpp |
p00012 | #include <math.h>
#include <stdio.h>
double eps = 1e-10;
int main() {
double x1, x2, x3, y1, y2, y3, xp, yp;
double s, s1, s2, s3;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3,
&xp, &yp) != EOF) {
//?????§????¢??????¢???
s = ((x2 - x1) * (y3 - y1) - (y2 - y... | #include <math.h>
#include <stdio.h>
double eps = 1e-10;
int main() {
double x1, x2, x3, y1, y2, y3, xp, yp;
double s, s1, s2, s3;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3,
&xp, &yp) != EOF) {
//?????§????¢??????¢???
s = ((x2 - x1) * (y3 - y1) - (y2 - y... | [
"control_flow.branch.if.condition.change"
] | 14,008 | 14,009 | u073628131 | cpp |
p00012 | #include <bits/stdc++.h>
#define range(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, b) range(i, 0, b)
#define pb(a) push_back(a)
#define all(a) (a).begin(), (a), end()
#define debug(x) cout << "debug " << x << endl;
using namespace std;
double dist(double x1, double y1, double x2, double y2) {
return sqrt... | #include <bits/stdc++.h>
#define range(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, b) range(i, 0, b)
#define pb(a) push_back(a)
#define all(a) (a).begin(), (a), end()
#define debug(x) cout << "debug " << x << endl;
using namespace std;
double dist(double x1, double y1, double x2, double y2) {
return sqrt... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,010 | 14,011 | u452212317 | cpp |
p00012 | #include <bits/stdc++.h>
using namespace std;
typedef struct {
double x, y;
} vec_t;
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
vec_t AB, BC, CA, AP, BP, CP;
cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> xp >> yp;
AB.x = x2 - x1, AB.y = y2 - y1;
BC.x = x3 - x2, BC.y = y3 - y2;
CA.x = x1 - x3, ... | #include <bits/stdc++.h>
using namespace std;
typedef struct {
double x, y;
} vec_t;
int main() {
double x1, y1, x2, y2, x3, y3, xp, yp;
vec_t AB, BC, CA, AP, BP, CP;
while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> xp >> yp) {
AB.x = x2 - x1, AB.y = y2 - y1;
BC.x = x3 - x2, BC.y = y3 - y2;
C... | [] | 14,018 | 14,019 | u874419660 | cpp |
p00012 | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include ... | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include ... | [
"assignment.add"
] | 14,020 | 14,021 | u757835473 | cpp |
p00012 | #include <iostream>
using namespace std;
int main(void) {
double x[3] = {0, 0, 0};
double y[3] = {0, 0, 0};
double xp = 0, yp = 0;
int flag[3] = {0, 0, 0};
while (cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp) {
for (int i = 0; i < 3; i++) {
int temp1 = (i + 1) % 3;
int te... | #include <iostream>
using namespace std;
int main(void) {
double x[3] = {0, 0, 0};
double y[3] = {0, 0, 0};
double xp = 0, yp = 0;
int flag[3] = {0, 0, 0};
while (cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp) {
for (int i = 0; i < 3; i++) {
int temp1 = (i + 1) % 3;
int te... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 14,022 | 14,023 | u541499927 | cpp |
p00012 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define vi vector<int>
#define vvi vector<vector<int>>
#define ll long long int
#define vl vector<ll>
#def... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define vi vector<int>
#define vvi vector<vector<int>>
#define ll long long int
#define vl vector<ll>
#def... | [
"control_flow.branch.if.condition.change"
] | 14,031 | 14,032 | u287295208 | cpp |
p00012 | #include <iostream>
using namespace std;
struct TCoordinate {
double x;
double y;
};
double GetCrossProduct(const TCoordinate &V1, const TCoordinate &V2) {
return V1.x * V2.y - V1.y * V2.x;
}
bool IsSameSide(const TCoordinate &T1, const TCoordinate &T2,
const TCoordinate &L1, const TCoordinate ... | #include <iostream>
using namespace std;
struct TCoordinate {
double x;
double y;
};
double GetCrossProduct(const TCoordinate &V1, const TCoordinate &V2) {
return V1.x * V2.y - V1.y * V2.x;
}
bool IsSameSide(const TCoordinate &T1, const TCoordinate &T2,
const TCoordinate &L1, const TCoordinate ... | [
"identifier.change",
"call.arguments.change"
] | 14,033 | 14,034 | u050511799 | cpp |
p00014 | #include <cassert>
#include <iostream>
int f(int x) { return x * x; }
int main() {
while (true) {
int d;
std::cin >> d;
if (std::cin.eof())
break;
int s = 0;
for (int x = d; x < 600; x += d) {
s += d * f(x);
}
std::cout << s;
}
return 0;
} | #include <cassert>
#include <iostream>
int f(int x) { return x * x; }
int main() {
while (true) {
int d;
std::cin >> d;
if (std::cin.eof())
break;
int s = 0;
for (int x = d; x < 600; x += d) {
s += d * f(x);
}
std::cout << s << std::endl;
;
}
return 0;
} | [
"expression.operation.binary.add"
] | 14,037 | 14,038 | u858711833 | cpp |
p00014 | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n, res;
double buf;
while (cin >> n) {
res = 0;
for (int i = 0; i <= 600 - n; i += n) {
res += pow(i, 2) * n;
}
cout << res;
}
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n, res;
double buf;
while (cin >> n) {
res = 0;
for (int i = 0; i <= 600 - n; i += n) {
res += pow(i, 2) * n;
}
cout << res << endl;
}
return 0;
} | [
"io.output.newline.add"
] | 14,043 | 14,044 | u876735840 | cpp |
p00014 | #include <stdio.h>
int main() {
int n, ans, i;
while (scanf("%d", &n) != EOF) {
ans = 0;
for (i = 1; i * n < 600; i++)
ans += (i * n) * (i * n);
printf("%d\n", ans * (60 / i));
}
} | #include <stdio.h>
int main() {
int n, ans, i;
while (scanf("%d", &n) != EOF) {
ans = 0;
for (i = 1; i * n < 600; i++)
ans += (i * n) * (i * n);
printf("%d\n", ans * (600 / i));
}
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 14,045 | 14,046 | u048151615 | cpp |
p00014 | #include <cstdio>
#include <iostream>
#define N 600
double f(double x) { return x * x; }
int main(void) {
int d, i;
double sum;
while (std::cin >> d) {
sum = 0;
for (int i = d; i < N; i += d) {
sum += f(i) * d;
}
std::cout << sum << std::endl;
}
return 0;
} | #include <cstdio>
#include <iostream>
#define N 600
int f(int x) { return x * x; }
int main(void) {
int d, i;
int sum;
while (std::cin >> d) {
sum = 0;
for (int i = d; i < N; i += d) {
sum += f(i) * d;
}
std::cout << sum << std::endl;
}
return 0;
} | [
"function.return_type.change",
"variable_declaration.type.primitive.change"
] | 14,047 | 14,048 | u809931314 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
double area = 0;
for (int i = d; i <= 600 - d; i += d) {
area += i * i * d;
}
cout << area << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int area = 0;
for (int i = d; i <= 600 - d; i += d) {
area += i * i * d;
}
cout << area << endl;
}
return 0;
}
| [
"variable_declaration.type.primitive.change"
] | 14,049 | 14,050 | u886089509 | cpp |
p00014 | #include <iostream>
using namespace std;
int main(void) {
int d, s;
while (1) {
cin >> d;
if (cin.eof())
break;
s = 0;
for (int x = d; x < 600; x += d)
s += d * x * x;
cout << s;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int d, s;
while (1) {
cin >> d;
if (cin.eof())
break;
s = 0;
for (int x = d; x < 600; x += d)
s += d * x * x;
cout << s << endl;
}
return 0;
} | [
"io.output.newline.add"
] | 14,051 | 14,052 | u310778860 | cpp |
p00014 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <stack>
#include <vector>
#define EPS 1e-6
using namespace std;
typedef complex<double> coor;
double cross(coor a, coor b) {
return a.real() * b.imag() - a.imag() * b.real();
}
double dot(coor a, coor b) { return... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <stack>
#include <vector>
#define EPS 1e-6
using namespace std;
typedef complex<double> coor;
double cross(coor a, coor b) {
return a.real() * b.imag() - a.imag() * b.real();
}
double dot(coor a, coor b) { return... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 14,053 | 14,054 | u871901071 | cpp |
p00014 | #include <iostream>
using namespace std;
unsigned long long f(unsigned long long x) { return x * x; }
int main() {
int d;
while (cin >> d) {
unsigned long long s;
for (int i = d; i <= 600 - d; i += d)
s += d * f(i);
cout << s << endl;
}
return 0;
} | #include <iostream>
using namespace std;
unsigned long long f(unsigned long long x) { return x * x; }
int main() {
int d;
while (cin >> d) {
unsigned long long s = 0;
for (int i = d; i <= 600 - d; i += d)
s += d * f(i);
cout << s << endl;
}
return 0;
} | [
"variable_declaration.value.change"
] | 14,055 | 14,056 | u863376467 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
cin >> d;
int sum = 0;
for (int i = 0; i < 600; i += d) {
sum = sum + i * i * d;
}
cout << sum << endl;
} | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i < 600; i += d) {
sum = sum + i * i * d;
}
cout << sum << endl;
}
} | [] | 14,057 | 14,058 | u148810531 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int y = 0;
for (int i = 1; i <= 600; i++) {
y += d * (d * i) * (d * i);
}
cout << y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int y = 0;
for (int i = 1; i * d < 600; i++) {
y += d * (d * i) * (d * i);
}
cout << y << endl;
}
return 0;
} | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 14,059 | 14,060 | u674364816 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int s;
s = 600 / d;
int a;
a = 0;
int b;
b = 0;
while (a < s) {
b = b + d * d * a * a;
a = a + 1;
}
cout << a * d << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int s;
s = 600 / d;
int a;
a = 0;
int b;
b = 0;
while (a < s) {
b = b + d * d * a * a;
a = a + 1;
}
cout << b * d << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 14,062 | 14,063 | u012061892 | cpp |
p00014 | #include <iostream>
using namespace std;
typedef long long ll;
int main(void) {
ll in;
while (cin >> in) {
ll sum = 0;
for (ll i = in; i <= 600; i += in) {
sum += (i * in);
}
cout << sum << endl;
}
return 0;
} | #include <iostream>
using namespace std;
typedef long long ll;
int main(void) {
ll in;
while (cin >> in) {
ll sum = 0;
for (ll i = in; i < 600; i += in) {
sum += (i * i * in);
}
cout << sum << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"assignment.change"
] | 14,064 | 14,065 | u107564203 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
long sum;
int n;
while (cin >> d) {
sum = 0;
n = 600 / d;
for (int i = 1; i <= n; i++) {
sum += d * d * d * i * i;
}
cout << sum << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int d;
long sum;
int n;
while (cin >> d) {
sum = 0;
n = 600 / d;
for (int i = 1; i < n; i++) {
sum += d * d * d * i * i;
}
cout << sum << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 14,066 | 14,067 | u301021544 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
cin >> d;
int integral = 0;
for (int i = 0; i < 600 / d; i++) {
int x = i * d;
int y = x * x;
integral += y * d;
}
cout << integral << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int integral = 0;
for (int i = 0; i < 600 / d; i++) {
int x = i * d;
int y = x * x;
integral += y * d;
}
cout << integral << endl;
}
return 0;
} | [] | 14,068 | 14,069 | u067467468 | cpp |
p00014 | #include <iostream>
using namespace std;
int main(void) {
int d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i < 600; i += d) {
sum += d * i * i;
}
cout << sum;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i < 600; i += d) {
sum += d * i * i;
}
cout << sum << endl;
}
return 0;
} | [
"io.output.newline.add"
] | 14,070 | 14,071 | u794064400 | cpp |
p00012 | #include <iostream>
using namespace std;
bool judge(double x1, double x2, double x3, double y1, double y2, double y3,
double xp, double yp) {
if (((x2 - x1) * (yp - y2)) - ((y2 - y1) * (xp - x2)) > 0) {
if (((x3 - x2) * (yp - y3)) - ((y3 - y2) * (xp - x3)) > 0) {
if (((x1 - x3) * (yp - y1)) - ((... | #include <iostream>
using namespace std;
bool judge(double x1, double x2, double x3, double y1, double y2, double y3,
double xp, double yp) {
if (((x2 - x1) * (yp - y2)) - ((y2 - y1) * (xp - x2)) > 0) {
if (((x3 - x2) * (yp - y3)) - ((y3 - y2) * (xp - x3)) > 0) {
if (((x1 - x3) * (yp - y1)) - ((... | [] | 14,087 | 14,088 | u059685151 | cpp |
p00012 | #include <iostream>
using namespace std;
class Vector {
public:
double x;
double y;
Vector(double xx = 0, double yy = 0) {
x = xx;
y = yy;
}
Vector operator+(Vector p);
Vector operator-(Vector p);
};
Vector Vector::operator+(Vector p) {
Vector tmp;
tmp.x = x + p.x;
tmp.y = y + p.y;
return tm... | #include <iostream>
using namespace std;
class Vector {
public:
double x;
double y;
Vector(double xx = 0, double yy = 0) {
x = xx;
y = yy;
}
Vector operator+(Vector p);
Vector operator-(Vector p);
};
Vector Vector::operator+(Vector p) {
Vector tmp;
tmp.x = x + p.x;
tmp.y = y + p.y;
return tm... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 14,089 | 14,090 | u886089509 | cpp |
p00012 | #include <iostream>
#include <utility>
using namespace std;
int judge(pair<double, double> p1, pair<double, double> p2) {
int S = p1.first * p2.second - p2.first * p1.second;
if (0 < S)
return 1;
if (0 > S)
return -1;
if (0 == S)
return 0;
}
int main() {
pair<double, double> A, B, C, P;
while... | #include <iostream>
#include <utility>
using namespace std;
int judge(pair<double, double> p1, pair<double, double> p2) {
double S = p1.first * p2.second - p2.first * p1.second;
if (0 < S)
return 1;
if (0 > S)
return -1;
if (0 == S)
return 0;
}
int main() {
pair<double, double> A, B, C, P;
wh... | [
"variable_declaration.type.primitive.change"
] | 14,091 | 14,092 | u286829185 | cpp |
p00012 | #include <cmath>
#include <complex>
#include <iostream>
using namespace std;
typedef complex<double> P;
double cross(P a, P b) { return (a.real() * b.imag() - a.imag() * b.real()); }
P vector_coord(P a, P b, P x) {
return P(-cross(b, x), cross(a, x)) / cross(a, b);
}
int main() {
double a1, b1, a2, b2, a3, b3, x... | #include <cmath>
#include <complex>
#include <iostream>
using namespace std;
typedef complex<double> P;
double cross(P a, P b) { return (a.real() * b.imag() - a.imag() * b.real()); }
P vector_coord(P a, P b, P x) {
return P(-cross(b, x), cross(a, x)) / cross(a, b);
}
int main() {
double a1, b1, a2, b2, a3, b3, x... | [
"assignment.change"
] | 14,097 | 14,098 | u129997015 | cpp |
p00012 | #include <iostream>
using namespace std;
class Vector2 {
public:
Vector2() {}
Vector2(double aX, double aY) : x(aX), y(aY) {}
double dot(Vector2 &a) { return (x * a.x) + (y * a.y); }
double x;
double y;
};
int main() {
Vector2 p0, p1, p2, q;
while (cin >> p0.x >> p0.y >> p1.x >> p1.y >> p2.x >> p2.y ... | #include <iostream>
using namespace std;
class Vector2 {
public:
Vector2() {}
Vector2(double aX, double aY) : x(aX), y(aY) {}
double dot(Vector2 &a) { return (x * a.x) + (y * a.y); }
double x;
double y;
};
int main() {
Vector2 p0, p1, p2, q;
while (cin >> p0.x >> p0.y >> p1.x >> p1.y >> p2.x >> p2.y ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 14,101 | 14,102 | u653894695 | cpp |
p00012 | #include <complex>
#include <cstdio>
#include <iostream>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define EPS 1e-15
using namespace std;
typedef complex<double> cd;
double s(cd a, cd b) { return abs(a.real() * b.imag() - a.imag() * b.real()); }
int main() {
cd a[4];
double x1, y1, x2, y2, x3, y3, xp, yp;
... | #include <complex>
#include <cstdio>
#include <iostream>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define EPS 1e-10
using namespace std;
typedef complex<double> cd;
double s(cd a, cd b) { return abs(a.real() * b.imag() - a.imag() * b.real()); }
int main() {
cd a[4];
double x1, y1, x2, y2, x3, y3, xp, yp;
... | [
"preprocessor.define.value.change",
"literal.float.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 14,105 | 14,106 | u103665636 | cpp |
p00012 | #include <complex>
#include <cstdio>
#include <iostream>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define EPS 1e-5
using namespace std;
typedef complex<double> cd;
double s(cd a, cd b) { return abs(a.real() * b.imag() - a.imag() * b.real()); }
int main() {
cd a[4];
double x1, y1, x2, y2, x3, y3, xp, yp;
... | #include <complex>
#include <cstdio>
#include <iostream>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define EPS 1e-10
using namespace std;
typedef complex<double> cd;
double s(cd a, cd b) { return abs(a.real() * b.imag() - a.imag() * b.real()); }
int main() {
cd a[4];
double x1, y1, x2, y2, x3, y3, xp, yp;
... | [
"preprocessor.define.value.change",
"literal.float.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 14,107 | 14,106 | u103665636 | cpp |
p00012 | #include <stdio.h>
int main(void) {
double x1, y1, x2, y2, x3, y3, xp, yp, p, q;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3,
&xp, &yp) != EOF)
;
{
if (x1 == 0 && y1 == 0) {
} else {
x2 -= x1;
x3 -= x1;
xp -= x1;
y2 -= y1;
... | #include <stdio.h>
int main(void) {
double x1, y1, x2, y2, x3, y3, xp, yp, p, q;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3,
&xp, &yp) != EOF) {
if (x1 == 0 && y1 == 0) {
} else {
x2 -= x1;
x3 -= x1;
xp -= x1;
y2 -= y1;
y3 -= y1... | [] | 14,110 | 14,111 | u133060595 | cpp |
p00012 | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define EPS (1e-10)
using namespace std;
#define PI (3.1415926535)
int main() {
double x[4], y[4];
bool left, r... | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define EPS (1e-10)
using namespace std;
#define PI (3.1415926535)
int main() {
double x[4], y[4];
bool left, r... | [] | 14,112 | 14,113 | u934534598 | cpp |
p00012 | #include <cmath>
#include <cstdio>
using namespace std;
inline double out(double ax, double ay, double bx, double by) {
return bx * ay - by * ax;
}
int main(void) {
double x1, y1, x2, y2, x3, y3, px, py;
while (scanf("%lf%lf%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3, &px,
&py) != EOF) {
... | #include <cmath>
#include <cstdio>
using namespace std;
inline double out(double ax, double ay, double bx, double by) {
return bx * ay - by * ax;
}
int main(void) {
double x1, y1, x2, y2, x3, y3, px, py;
while (scanf("%lf%lf%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3, &px,
&py) != EOF) {
... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 14,114 | 14,115 | u682037079 | cpp |
p00012 | #include <cmath>
#include <iostream>
using namespace std;
double heron(double a, double b, double c) {
double s = (a + b + c) / 2;
return sqrt(s * (s - a) * (s - b) * (s - c));
}
int main() {
double x[4], y[4];
while (cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> x[3] >> y[3]) {
double A, B, C;
... | #include <cmath>
#include <iostream>
using namespace std;
double heron(double a, double b, double c) {
double s = (a + b + c) / 2;
return sqrt(s * (s - a) * (s - b) * (s - c));
}
int main() {
double x[4], y[4];
while (cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> x[3] >> y[3]) {
double A, B, C;
... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 14,120 | 14,121 | u107750881 | cpp |
p00012 | #include <math.h>
#include <stdio.h>
int main(void) {
double x1, x2, x3, xp, y1, y2, y3, yp, l12, l23, l13, l1p, l2p, l3p, S123,
S12p, S23p, S13p;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3,
&xp, &yp) != EOF) {
l12 = sqrt((x1 - x2) * (x1 - x2) + (y1 - y... | #include <math.h>
#include <stdio.h>
int main(void) {
double x1, x2, x3, xp, y1, y2, y3, yp, l12, l23, l13, l1p, l2p, l3p, S123,
S12p, S23p, S13p;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3,
&xp, &yp) != EOF) {
l12 = sqrt((x1 - x2) * (x1 - x2) + (y1 - y... | [
"control_flow.branch.if.condition.change"
] | 14,126 | 14,127 | u118157225 | cpp |
p00012 | #include <iostream>
double x[3], y[3], xp, yp;
int main() {
while (std::cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp) {
int bit = 2;
for (int i = 0; i < 3; ++i) {
double tmp = (x[(i + 1) % 3] - x[i]) * (yp - y[i]) -
(y[(i + 1) % 3] - y[i]) * (xp - x[i]);
bit &... | #include <iostream>
double x[3], y[3], xp, yp;
int main() {
while (std::cin >> x[0] >> y[0] >> x[1] >> y[1] >> x[2] >> y[2] >> xp >> yp) {
int bit = 3;
for (int i = 0; i < 3; ++i) {
double tmp = (x[(i + 1) % 3] - x[i]) * (yp - y[i]) -
(y[(i + 1) % 3] - y[i]) * (xp - x[i]);
bit &... | [
"literal.number.change",
"variable_declaration.value.change"
] | 14,128 | 14,129 | u023846178 | cpp |
p00012 | #include <iostream>
using namespace std;
int gaiseki(double, double, double, double, double, double);
int main() {
double x[4], y[4];
int n[3], ans;
while (cin >> x[0]) {
cin >> y[0];
for (int i = 1; i < 4; i++) {
cin >> x[i] >> y[i];
}
//三角形の各辺の外積(求めたい点と始点、求めたい点と終点との外積)を取り、全て右か左だったら中に含まれる... | #include <iostream>
using namespace std;
int gaiseki(double, double, double, double, double, double);
int main() {
double x[4], y[4];
int n[3], ans;
while (cin >> x[0]) {
cin >> y[0];
for (int i = 1; i < 4; i++) {
cin >> x[i] >> y[i];
}
//三角形の各辺の外積(求めたい点と始点、求めたい点と終点との外積)を取り、全て右か左だったら中に含まれる... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,130 | 14,131 | u437039370 | cpp |
p00012 | #include <iostream>
using namespace std;
typedef struct {
double x;
double y;
} vector;
bool ex_product(double x0, double y0, double x1, double y1, double xp,
double yp) {
vector a = {x1 - x0, y1 - y0};
vector b = {xp - x0, yp - y0};
return (a.x * b.y - a.y * b.x) >= 0;
}
int main(int argc... | #include <iostream>
using namespace std;
typedef struct {
double x;
double y;
} vector;
bool ex_product(double x0, double y0, double x1, double y1, double xp,
double yp) {
vector a = {x1 - x0, y1 - y0};
vector b = {xp - x0, yp - y0};
return (a.x * b.y - a.y * b.x) >= 0;
}
int main(int argc... | [] | 14,134 | 14,135 | u256688954 | cpp |
p00012 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef complex<double> P;
const double EPS = 1e-8;
const double INF = 1e6;
double cross(P a, P b) { return imag(conj(a) * b); }
int mai... |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef complex<double> P;
const double EPS = 1e-8;
const double INF = 1e6;
double cross(P a, P b) { return imag(conj(a) * b); }
int ma... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,139 | 14,140 | u467129921 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d, tmp, s = 0;
while (cin >> d) {
tmp = d;
for (; d <= 600 - tmp; d += tmp) {
s += d * d * tmp;
}
cout << s << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int d, tmp, s = 0;
while (cin >> d) {
tmp = d;
for (; d <= 600 - tmp; d += tmp) {
s += d * d * tmp;
}
cout << s << endl;
s = 0;
}
return 0;
}
| [
"assignment.add"
] | 14,236 | 14,237 | u636738157 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int area = 0;
for (int x; x < 600; x += d) {
area += (x * x) * d;
}
cout << area << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int area = 0;
for (int x = 0; x < 600; x += d) {
area += (x * x) * d;
}
cout << area << endl;
}
return 0;
} | [
"control_flow.loop.for.initializer.change",
"variable_declaration.value.change"
] | 14,240 | 14,241 | u150414576 | cpp |
p00014 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int d, newd, s = 0;
while (cin >> d) {
newd = d;
while (newd < 600) {
s += d * pow(newd, 2);
newd += d;
}
cout << s << endl;
}
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int d, newd, s = 0;
while (cin >> d) {
s = 0;
newd = d;
while (newd < 600) {
s += d * pow(newd, 2);
newd += d;
}
cout << s << endl;
}
} | [
"assignment.add"
] | 14,242 | 14,243 | u017200929 | cpp |
p00014 | #include <iostream>
#include <string>
using namespace std;
int main() {
int d;
while (cin >> d) {
int s = 0;
for (int i = 0; i < d; i += d) {
s += i * i * d;
}
cout << d << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int d, s;
while (cin >> d) {
s = 0;
for (int i = 0; i < 600; i += d) {
s += i * i * d;
}
cout << s << endl;
}
return 0;
} | [
"variable_declaration.add",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"identifier.change",
"io.output.change"
] | 14,244 | 14,245 | u706356703 | cpp |
p00014 | #include <iostream>
#include <string>
using namespace std;
int main() {
int d;
while (cin >> d) {
int s = 0;
for (int i = 0; i < 600; i += d) {
s += i * i * d;
}
cout << d << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int d, s;
while (cin >> d) {
s = 0;
for (int i = 0; i < 600; i += d) {
s += i * i * d;
}
cout << s << endl;
}
return 0;
} | [
"variable_declaration.add",
"identifier.change",
"io.output.change"
] | 14,246 | 14,245 | u706356703 | cpp |
p00014 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int f(int x) { return x * x; }
int main() {
int d;
while (cin >> d) {
int sum = 0;
int x = 0;
while (x < 600) {
sum += f(x);
x += d;
}
cout << sum << endl;
}
} | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int f(int x) { return x * x; }
int main() {
int d;
while (cin >> d) {
int sum = 0;
int x = 0;
while (x < 600) {
sum += f(x) * d;
x += d;
}
cout << sum << endl;
}
} | [
"assignment.change"
] | 14,247 | 14,248 | u864527629 | cpp |
p00014 | #include <iostream>
int main() {
int d, area;
while (std::cin >> d) {
area = 0;
for (int i = 1; i < 600 / d; ++i)
area += i * i * d * d;
std::cout << area << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int d, area;
while (std::cin >> d) {
area = 0;
for (int i = 1; i < 600 / d; ++i)
area += i * i * d * d * d;
std::cout << area << std::endl;
}
return 0;
} | [
"assignment.change"
] | 14,251 | 14,252 | u296865446 | cpp |
p00014 | #include <iostream>
using namespace std;
long long int f(int a) { return (long long int)a * a; }
int main() {
int d, od, num;
long long int s = 0;
while (cin >> d) {
num = 600 / d;
od = d;
for (int i = 0; i < num; i++) {
s += od * f(d);
d += od;
}
cout << s << endl;
s = 0;
... | #include <iostream>
using namespace std;
long long int f(int a) { return (long long int)a * a; }
int main() {
int d, od, num;
long long int s = 0;
while (cin >> d) {
num = 600 / d;
od = d;
d = 0;
for (int i = 0; i < num; i++) {
s += od * f(d);
d += od;
}
cout << s << endl;
... | [
"assignment.add"
] | 14,256 | 14,257 | u822202919 | cpp |
p00014 | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int d, ans;
while (cin >> d) {
for (int i = 0; i < 600; i += d) {
ans += d * i * i;
}
cout << ans << endl;
}
return 0;
} | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int d, ans;
while (cin >> d) {
ans = 0;
for (int i = 0; i < 600; i += d) {
ans += d * i * i;
}
cout << ans << endl;
}
return 0;
} | [
"assignment.add"
] | 14,258 | 14,259 | u827067713 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d, x, y, s = 0;
while (cin >> d) {
x = 600;
for (x -= d; x > 0; x -= d) {
y = x * x;
s += y * d;
}
cout << s << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int d, x, y, s = 0;
while (cin >> d) {
x = 600;
s = 0;
for (x -= d; x > 0; x -= d) {
y = x * x;
s += y * d;
}
cout << s << endl;
}
return 0;
} | [
"assignment.add"
] | 14,260 | 14,261 | u256874901 | cpp |
p00014 | #include <bits/stdc++.h>
using namespace std;
int main() {
int d;
cin >> d;
int result = 0;
for (int i = 1; d * i <= 600 - d; i++) {
result += (i * d) * (i * d) * d;
}
cout << result << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int d;
while (cin >> d) {
int result = 0;
for (int i = 1; d * i <= 600 - d; i++) {
result += (i * d) * (i * d) * d;
}
cout << result << endl;
}
return 0;
} | [] | 14,262 | 14,263 | u955830252 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int S = 0;
for (int i = 1; i < 600 / d; i++) {
S += d * d * i * i;
}
cout << S << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int S = 0;
for (int i = 1; i * d < 600; i++) {
S += d * d * d * i * i;
}
cout << S << endl;
}
} | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"assignment.change"
] | 14,264 | 14,265 | u551438531 | cpp |
p00014 | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
int f(int x) { return x * x; }
int main() {
int d;
int D = 600;
cin >> d;
int s = 0;
for (int i = 1; i * d < D; i++)
s += f(i * d) * d;
cout << s << ... | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
int f(int x) { return x * x; }
int main() {
int d;
int D = 600;
while (cin >> d) {
int s = 0;
for (int i = 1; i * d < D; i++)
s += f(i * d) * d;
... | [] | 14,266 | 14,267 | u329400409 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
long d;
while (cin >> d) {
long count;
for (int i = 0; i < 600; i += d) {
count += d * i * i;
}
cout << count << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
long d;
while (cin >> d) {
long count = 0;
for (int i = 0; i < 600; i += d) {
count += d * i * i;
}
cout << count << endl;
}
return 0;
} | [
"variable_declaration.value.change"
] | 14,268 | 14,269 | u915343634 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
double sum = 0;
for (int i = 0; i < 600 / d; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i * d < 600; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | [
"variable_declaration.type.primitive.change",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 14,270 | 14,271 | u843611113 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
double sum = 0;
for (int i = 1; i < 600 / d; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i * d < 600; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 14,272 | 14,271 | u843611113 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
double sum = 0;
for (int i = 0; i * d < 600; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i * d < 600; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | [
"variable_declaration.type.primitive.change"
] | 14,273 | 14,271 | u843611113 | cpp |
p00014 | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
double sum = 0;
for (int i = 1; i * d < 600; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | #include <iostream>
using namespace std;
int main() {
double d;
while (cin >> d) {
int sum = 0;
for (int i = 0; i * d < 600; i++) {
sum = sum + d * (i * d) * (i * d);
}
cout << sum << endl;
}
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 14,274 | 14,271 | u843611113 | cpp |
p00014 | /*#include<stdio.h>
#include <algorithm>
#include<cmath>
#include<cstdlib>
#include<functional>
#include<iostream>
#include<math.h>
#include<queue>
#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, n) for(int ... | /*#include<stdio.h>
#include <algorithm>
#include<cmath>
#include<cstdlib>
#include<functional>
#include<iostream>
#include<math.h>
#include<queue>
#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, n) for(int ... | [
"literal.number.change",
"assignment.value.change"
] | 14,275 | 14,276 | u017136598 | cpp |
p00014 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int d;
cin >> d;
int n = 600 / d;
int ans = 0;
for (int i = 1; i < n; i++) {
ans += d * (i * d * i * d);
}
cout << ans << endl;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int d;
while (cin >> d) {
int n = 600 / d;
long ans = 0;
for (int i = 1; i < n; i++) {
ans += d * (i * d * i * d);
}
cout << ans << endl;
}
} | [
"variable_declaration.type.primitive.change"
] | 14,283 | 14,284 | u403618837 | cpp |
p00015 | #include <iostream>
#include <stdio.h>
#include <string.h>
int n;
char a[1000];
int temp[1000], temp2[1000], temp3[1000];
int main() {
std::cin >> n;
while (n--) {
memset(temp, -1, sizeof(temp));
memset(temp2, -1, sizeof(temp2));
memset(temp3, 0, sizeof(temp3));
std::cin >> a;
for (int i = ... | #include <iostream>
#include <stdio.h>
#include <string.h>
int n;
char a[1000];
int temp[1000], temp2[1000], temp3[1000];
int main() {
std::cin >> n;
while (n--) {
memset(temp, -1, sizeof(temp));
memset(temp2, -1, sizeof(temp2));
memset(temp3, 0, sizeof(temp3));
std::cin >> a;
for (int i = ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,689 | 14,690 | u450407555 | cpp |
p00015 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
#define MAX_DIGIT 80
#define ERROR ("Overflow")
int main(void) {
using namespace std;
int N;
cin >> N;
vector<pair<string, string>> input;
input.reserve(N);
for (int i = 1; i <= N; i++) {
string slhs, srhs;
cin >> sl... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
#define MAX_DIGIT 80
#define ERROR ("overflow")
int main(void) {
using namespace std;
int N;
cin >> N;
vector<pair<string, string>> input;
input.reserve(N);
for (int i = 1; i <= N; i++) {
string slhs, srhs;
cin >> sl... | [
"preprocessor.define.value.change"
] | 14,693 | 14,694 | u951864851 | cpp |
p00015 | #include <algorithm>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
string a, b, sum;
void check(int z, int x);
int A, B;
int main(void) {
int n;
cin >> n;
while (n--) {
a = "", b = "", sum = "";
cin >> a >> b;
// cout<<"a="<<a<<"b="<<b<<"sum="<<sum<<endl;
if (a.l... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
string a, b, sum;
void check(int z, int x);
int A, B;
int main(void) {
int n;
cin >> n;
while (n--) {
a = "", b = "", sum = "";
cin >> a >> b;
// cout<<"a="<<a<<"b="<<b<<"sum="<<sum<<endl;
if (a.l... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,695 | 14,696 | u048020936 | cpp |
p00015 | #include <algorithm>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
int main(void) {
string s1, s2;
stack<int> sum;
int tmp, carry, n, len1, len2;
cin >> n;
for (int i = 0; i < n; i++) {
tmp = carry = 0;
// clear stack
while (!sum.empty())
sum.pop();
cin >... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
int main(void) {
string s1, s2;
stack<int> sum;
int tmp, carry, n, len1, len2;
cin >> n;
for (int i = 0; i < n; i++) {
tmp = carry = 0;
while (!sum.empty())
sum.pop();
cin >> s1 >> s2;
len... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,701 | 14,702 | u467929102 | cpp |
p00015 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <tuple>
#include <valarray>
#include <vector>
using namespace std;
typedef lon... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <tuple>
#include <valarray>
#include <vector>
using namespace std;
typedef lon... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,703 | 14,704 | u849555829 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string str1, str2;
int testnum;
cin >> testnum;
int t = 0;
while (t < testnum && cin >> str1 >> str2) {
string sumstr;
reverse(str1.begin(), str1.end());
reverse(str2.begin(), str2.end());
unsigned... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string str1, str2;
int testnum;
cin >> testnum;
int t = 0;
while (t < testnum && cin >> str1 >> str2) {
string sumstr;
reverse(str1.begin(), str1.end());
reverse(str2.begin(), str2.end());
unsigned... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,705 | 14,706 | u445955169 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
int f(char x) {
switch (x) {
case '0':
return 0;
case '1':
return 1;
case '2':
return 2;
case '3':
return 3;
case '4':
return 4;
case '5':
return 5;
case '6':
return 6;
case '7':
return 7;
case '8':
return 8;
case '... | #include <bits/stdc++.h>
using namespace std;
int f(char x) {
switch (x) {
case '0':
return 0;
case '1':
return 1;
case '2':
return 2;
case '3':
return 3;
case '4':
return 4;
case '5':
return 5;
case '6':
return 6;
case '7':
return 7;
case '8':
return 8;
case '... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,712 | 14,713 | u919087013 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
int f(char x) {
switch (x) {
case '0':
return 0;
case '1':
return 1;
case '2':
return 2;
case '3':
return 3;
case '4':
return 4;
case '5':
return 5;
case '6':
return 6;
case '7':
return 7;
case '8':
return 8;
case '... | #include <bits/stdc++.h>
using namespace std;
int f(char x) {
switch (x) {
case '0':
return 0;
case '1':
return 1;
case '2':
return 2;
case '3':
return 3;
case '4':
return 4;
case '5':
return 5;
case '6':
return 6;
case '7':
return 7;
case '8':
return 8;
case '... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,712 | 14,714 | u919087013 | cpp |
p00015 | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define rep2(x, from, to) for (int x = (from); (x) < (to); (x)++)
#define rep(x, to) rep2(x, 0, to)
int main() {
int n;
cin >> n;
while (n--) {
string a, b;
int x[84], y[84], s[84], max;
cin >> a >> b;
if (a.length() > 8... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define rep2(x, from, to) for (int x = (from); (x) < (to); (x)++)
#define rep(x, to) rep2(x, 0, to)
int main() {
int n;
cin >> n;
while (n--) {
string a, b;
int x[84], y[84], s[84], max;
cin >> a >> b;
if (a.length() > 8... | [
"control_flow.break.remove",
"control_flow.continue.add"
] | 14,716 | 14,717 | u811434779 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
string sum(string &a, string &b) {
int i = a.length() - 1;
int j = b.length() - 1;
int carry = 0;
string temp;
while (i >= 0 || j >= 0) {
int c = i >= 0 ? a[i] - '0' : 0;
int d = j ... | #include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
string sum(string &a, string &b) {
int i = a.length() - 1;
int j = b.length() - 1;
int carry = 0;
string temp;
while (i >= 0 || j >= 0) {
int c = i >= 0 ? a[i] - '0' : 0;
int d = j ... | [
"assignment.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 14,720 | 14,721 | u895500764 | cpp |
p00015 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define PI 3.141592653
int main() {
string A, B;
int n, Ak, Bk, ans[81];
scanf("%d", &n);
for (int ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define PI 3.141592653
int main() {
string A, B;
int n, Ak, Bk, ans[81];
scanf("%d", &n);
for (int ... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 14,722 | 14,723 | u414351000 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
for (int i = 0; i < N; i++) {
string a, b, c, d;
cin >> a;
cin >> b;
int x = max(a.length(), b.length());
for (int j = 0; j < x - a.length() + 1; j++) {
c += "0";
}
for (int j = 0; j < x - b.length() + ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
for (int i = 0; i < N; i++) {
string a, b, c, d;
cin >> a;
cin >> b;
int x = max(a.length(), b.length());
for (int j = 0; j < x - a.length() + 1; j++) {
c += "0";
}
for (int j = 0; j < x - b.length() + ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,724 | 14,725 | u018134297 | cpp |
p00015 | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, c = 0, tmp;
cin >> N;
string ans;
for (int i = 0; i < N; i++) {
ans = "";
string a, b;
cin >> a >> b;
for (int j = 0; j < max(a.length(), b.length()); j++) {
int A, B;
A = a.length() - j... | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, c, tmp;
cin >> N;
string ans;
for (int i = 0; i < N; i++) {
ans = "";
c = 0;
string a, b;
cin >> a >> b;
for (int j = 0; j < max(a.length(), b.length()); j++) {
int A, B;
A = a.lengt... | [
"assignment.add"
] | 14,726 | 14,727 | u251148376 | cpp |
p00015 | #include <stdio.h>
#define N 80
// Longint <- String
int init(int a[], char s[]);
// a <- b + c
int add(int a[], int b[], int c[]);
// print Longint
void print(int a[]);
int main(void) {
int n;
int a[N], b[N], sum[N];
char s[101], t[101];
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%s", s);
... | #include <stdio.h>
#define N 80
// Longint <- String
int init(int a[], char s[]);
// a <- b + c
int add(int a[], int b[], int c[]);
// print Longint
void print(int a[]);
int main(void) {
int n;
int a[N], b[N], sum[N];
char s[101], t[101];
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%s", s);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,728 | 14,729 | u182576515 | cpp |
p00015 | #include <iostream>
#include <string>
using namespace std;
int main() {
int n, i, j;
cin >> n;
for (i = 0; i < n; i++) {
string str1, str2, temp;
int kuriagari = 0;
cin >> str1 >> str2;
if (str1.size() < str2.size()) {
temp = str1;
str1 = str2;
str2 = temp;
}
int gouk... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n, i, j;
cin >> n;
for (i = 0; i < n; i++) {
string str1, str2, temp;
int kuriagari = 0;
cin >> str1 >> str2;
if (str1.size() < str2.size()) {
temp = str1;
str1 = str2;
str2 = temp;
}
int gouk... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,730 | 14,731 | u670914305 | cpp |
p00015 | #include <cstdlib>
#include <iostream>
#include <string>
#define DIGIT 80
using namespace std;
class largenum {
int nums[DIGIT];
bool overflow;
int most;
public:
largenum() {
overflow = false;
most = DIGIT - 1;
for (int i = 0; i < DIGIT; i++)
nums[i] = 0;
}
bool isoverflow() { return ove... | #include <cstdlib>
#include <iostream>
#include <string>
#define DIGIT 80
using namespace std;
class largenum {
int nums[DIGIT];
bool overflow;
int most;
public:
largenum() {
overflow = false;
most = DIGIT - 1;
for (int i = 0; i < DIGIT; i++)
nums[i] = 0;
}
bool isoverflow() { return ove... | [
"control_flow.branch.else.add"
] | 14,733 | 14,734 | u193276641 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int n, i, j, flag;
char ch1[100], ch2[100];
cin >> n;
fgets(ch1, 100, stdin);
for (i = 0; i < n; i++) {
fgets(ch1, 100, stdin);
fgets(ch2, 100, stdin);
if (strlen(ch1... | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int n, i, j, flag;
char ch1[100], ch2[100];
cin >> n;
fgets(ch1, 100, stdin);
for (i = 0; i < n; i++) {
fgets(ch1, 100, stdin);
fgets(ch2, 100, stdin);
if (strlen(ch1... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,735 | 14,736 | u642694278 | cpp |
p00015 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
for (int y = 0; y < n; y++) {
string s, t;
cin >> s >> t;
int ls = s.size(), lt = t.size();
if (ls ... |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
for (int y = 0; y < n; y++) {
string s, t;
cin >> s >> t;
int ls = s.size(), lt = t.size();
if (ls ... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 14,737 | 14,738 | u835414158 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.