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 |
|---|---|---|---|---|---|---|---|
p02290 | #include <iostream>
#include <math.h>
#include <stdio.h>
#define EPS 0.00000001
using namespace std;
int main(void) {
double x1, y1, x2, y2;
double x0, y0;
double dx, dy;
double m;
double X, Y;
int q;
cin >> x1 >> y1 >> x2 >> y2;
dx = x1 - x2;
dy = y1 - y2;
cin >> q;
while (q--) {
cin >> x0 >... | #include <iostream>
#include <math.h>
#include <stdio.h>
#define EPS 0.00000001
using namespace std;
int main(void) {
double x1, y1, x2, y2;
double x0, y0;
double dx, dy;
double m;
double X, Y;
int q;
cin >> x1 >> y1 >> x2 >> y2;
dx = x1 - x2;
dy = y1 - y2;
cin >> q;
while (q--) {
cin >> x0 >... | [
"control_flow.branch.if.condition.change"
] | 127,895 | 127,896 | u496999590 | cpp |
p02290 | #include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
double x, y;
int q;
cin >> x >> y;
complex<double> p1(x, y);
cin >> x >> y;
complex<double> p2(x, y);
cin >> q;
while (q--) {
cin >> x >> y;
complex<double> p(x, y);
complex<double> p1p = p - p1;
... | #include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
double x, y;
int q;
cin >> x >> y;
complex<double> p1(x, y);
cin >> x >> y;
complex<double> p2(x, y);
cin >> q;
while (q--) {
cin >> x >> y;
complex<double> p(x, y);
complex<double> p1p = p - p1;
... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 127,897 | 127,898 | u496999590 | cpp |
p02290 | #include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
double x, y;
int q;
cin >> x >> y;
complex<double> p1(x, y);
cin >> x >> y;
complex<double> p2(x, y);
cin >> q;
while (q--) {
cin >> x >> y;
complex<double> p(x, y);
complex<double> p1p = p - p1;
... | #include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
double x, y;
int q;
cin >> x >> y;
complex<double> p1(x, y);
cin >> x >> y;
complex<double> p2(x, y);
cin >> q;
while (q--) {
cin >> x >> y;
complex<double> p(x, y);
complex<double> p1p = p - p1;
... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 127,899 | 127,898 | u496999590 | cpp |
p02290 | #include <cmath>
#include <iostream>
#include <stdio.h>
#include <utility>
using namespace std;
int main(void) {
pair<double, double> p0, p1, p;
pair<double, double> ans;
int n;
cin >> p0.first >> p0.second >> p1.first >> p1.second;
cin >> n;
while (n--) {
cin >> p.first >> p.second;
double a;
... | #include <cmath>
#include <iostream>
#include <stdio.h>
#include <utility>
using namespace std;
int main(void) {
pair<double, double> p0, p1, p;
pair<double, double> ans;
int n;
cin >> p0.first >> p0.second >> p1.first >> p1.second;
cin >> n;
while (n--) {
cin >> p.first >> p.second;
double a;
... | [
"assignment.value.change"
] | 127,900 | 127,901 | u195155547 | cpp |
p02290 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define REP(i, k, n) for (int i = k; i < n; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define INF 1 << 30
#define pb push_back
#define mp make_pair
... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define REP(i, k, n) for (int i = k; i < n; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define INF 1 << 30
#define pb push_back
#define mp make_pair
... | [
"identifier.change",
"io.output.change"
] | 127,902 | 127,903 | u765197056 | cpp |
p02290 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point p) { return Point(x + p.x, y + p.y); }
Point operator*(double k)... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
Point operator*(double k)... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 127,910 | 127,911 | u064467943 | cpp |
p02290 | #include <cmath>
#include <complex>
#include <cstdio>
#include <utility>
#include <vector>
using namespace std;
static const double EPS = 1e-12;
static const double INF = 1e24;
using Point = complex<double>;
using Plane = vector<Point>;
bool operator<(const Point &a, const Point &b) {
return real(a) != real(b) ? ... | #include <cmath>
#include <complex>
#include <cstdio>
#include <utility>
#include <vector>
using namespace std;
static const double EPS = 1e-12;
static const double INF = 1e24;
using Point = complex<double>;
using Plane = vector<Point>;
bool operator<(const Point &a, const Point &b) {
return real(a) != real(b) ? ... | [
"assignment.change"
] | 127,922 | 127,923 | u144532944 | cpp |
p02290 | #include <cmath>
#include <complex>
#include <cstdio>
#include <utility>
#include <vector>
using namespace std;
static const double EPS = 1e-12;
static const double INF = 1e24;
using Point = complex<double>;
using Plane = vector<Point>;
bool operator<(const Point &a, const Point &b) {
return real(a) != real(b) ? ... | #include <cmath>
#include <complex>
#include <cstdio>
#include <utility>
#include <vector>
using namespace std;
static const double EPS = 1e-12;
static const double INF = 1e24;
using Point = complex<double>;
using Plane = vector<Point>;
bool operator<(const Point &a, const Point &b) {
return real(a) != real(b) ? ... | [
"call.remove",
"call.arguments.change"
] | 127,924 | 127,923 | u144532944 | cpp |
p02290 | #include <bits/stdc++.h>
#define r(i, n) for (int i = 0; i < n; i++)
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point opera... | #include <bits/stdc++.h>
#define r(i, n) for (int i = 0; i < n; i++)
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point opera... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 127,934 | 127,935 | u962041986 | cpp |
p02290 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
#define PII pair<int, int>
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
double x, y;
Point(doub... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
#define PII pair<int, int>
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
double x, y;
Point(doub... | [
"assignment.change"
] | 127,936 | 127,937 | u050281953 | cpp |
p02290 | #include <complex>
#include <cstdio>
#define N 1000
typedef std::complex<double> point;
double InnerProd(point x, point y);
point Projection(point x, point y);
int main() {
point ans, p1, p2, tmp;
int q;
double x1, x2, y1, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
p1 = point(x1, y1);
p2 = point(x2, y2)... | #include <complex>
#include <cstdio>
#define N 1000
typedef std::complex<double> point;
double InnerProd(point x, point y);
point Projection(point x, point y);
int main() {
point ans, p1, p2;
int q;
double x1, x2, y1, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
p1 = point(x1, y1);
p2 = point(x2, y2);
s... | [
"variable_declaration.remove",
"assignment.change"
] | 127,938 | 127,939 | u809931314 | cpp |
p02290 | #include <bits/stdc++.h>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
#define SQR(n) ((n) * (n))
//???
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator+(Point p) { return (Point(x + p.x, y + p.y)); }
Point operator-(Po... | #include <bits/stdc++.h>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
#define SQR(n) ((n) * (n))
//???
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator+(Point p) { return (Point(x + p.x, y + p.y)); }
Point operator-(Po... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 127,943 | 127,944 | u748663083 | cpp |
p02290 | #include <bits/stdc++.h>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
#define SQR(n) ((n) * (n))
//???
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator+(Point p) { return (Point(x + p.x, y + p.y)); }
Point operator-(Po... | #include <bits/stdc++.h>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
#define SQR(n) ((n) * (n))
//???
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator+(Point p) { return (Point(x + p.x, y + p.y)); }
Point operator-(Po... | [
"expression.operation.binary.add"
] | 127,945 | 127,944 | u748663083 | cpp |
p02290 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <queue>
#include <vector>
using namespace std;
#define f(i, n) for (int i = 0; i < (int)n; i++)
#define MOD 1000000009
#define MIN (1e-10)
typedef complex<long double> P;
bool ... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <queue>
#include <vector>
using namespace std;
#define f(i, n) for (int i = 0; i < (int)n; i++)
#define MOD 1000000009
#define MIN (1e-10)
typedef complex<double> P;
bool EQ(P ... | [
"variable_declaration.type.narrow.change"
] | 127,949 | 127,950 | u263256550 | cpp |
p02290 | #include <iomanip>
#include <iostream>
using namespace std;
struct Point {
double x;
double y;
Point(double x, double y) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator*(double d) { return Point(x * d, y * d); }
};
typedef Point Vector;
double dot(Vector v1, Vecto... | #include <iomanip>
#include <iostream>
using namespace std;
struct Point {
double x;
double y;
Point(double x, double y) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator*(double d) { return Point(x * d, y * d); }
};
typedef Point Vector;
double dot(Vector v1, Vecto... | [
"identifier.change",
"expression.operation.binary.change"
] | 127,961 | 127,962 | u510526182 | cpp |
p02290 | #include <algorithm>
#include <array>
#include <cstdio>
#include <functional>
#include <iostream>
#include <list>
#include <numeric>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define _USE_MATH_DEFINES
#include <map>
#include <math.h>
#define INF 200000... | #include <algorithm>
#include <array>
#include <cstdio>
#include <functional>
#include <iostream>
#include <list>
#include <numeric>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define _USE_MATH_DEFINES
#include <map>
#include <math.h>
#define INF 200000... | [
"expression.operation.binary.add"
] | 127,964 | 127,965 | u456512109 | cpp |
p02290 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <type_traits>
... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <type_traits>
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 127,966 | 127,967 | u984106796 | cpp |
p02290 | #include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
ll read() {
ll x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getchar();
}
return ... | #include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
ll read() {
ll x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getchar();
}
return ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"function.return_value.change",
"expression.operation.binary.change",
"call.arguments.change",
"call.arguments.add"
] | 127,972 | 127,973 | u730001417 | cpp |
p02290 | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); }
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
using D = double;
const D PI = acos(D(-1)), E... | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); }
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
using D = double;
const D PI = acos(D(-1)), E... | [
"expression.operation.binary.add"
] | 127,978 | 127,979 | u849555829 | cpp |
p02293 | #include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
#define FOR(k, m, n) for (int(k) = (m); (k) < (n); (k)++)
#define REP(i, n) FOR((i), 0, (n))
//???
//???
class Point {
public:
double x, y;
//?????????????????????
Point... | #include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
#define FOR(k, m, n) for (int(k) = (m); (k) < (n); (k)++)
#define REP(i, n) FOR((i), 0, (n))
//???
//???
class Point {
public:
double x, y;
//?????????????????????
Point... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 127,984 | 127,985 | u905303767 | cpp |
p02293 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef sta... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef sta... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 127,986 | 127,987 | u974101748 | cpp |
p02293 | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double EPS = 1e-10;
inline bool equals(double a, double b) { return fabs(a - b) < EPS; }
class Point {
public:
double x, y;
Point(int x, int y) : x(x), y(y) {}
Point() {}
Point operator+(Point &p) { return... | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double EPS = 1e-10;
inline bool equals(double a, double b) { return fabs(a - b) < EPS; }
class Point {
public:
double x, y;
Point(int x, int y) : x(x), y(y) {}
Point() {}
Point operator+(Point &p) { return... | [
"function.return_value.change",
"expression.operation.binary.change"
] | 127,988 | 127,989 | u110158220 | cpp |
p02293 | #include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-8, PI = acos(-1);
inline bool eq(double a, double b) { return fabs(b - a) < EPS; }
using Point = complex<double>;
istream &operator>>(istream &is, Point &p) {
double a, b;
is >> a >> b;
p = Point(a, b);
return is;
}
ostream &operator<<(os... | #include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-8, PI = acos(-1);
inline bool eq(double a, double b) { return fabs(b - a) < EPS; }
using Point = complex<double>;
istream &operator>>(istream &is, Point &p) {
double a, b;
is >> a >> b;
p = Point(a, b);
return is;
}
ostream &operator<<(os... | [
"identifier.change",
"call.function.change",
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 127,992 | 127,993 | u095377734 | cpp |
p02293 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 127,994 | 127,995 | u348323370 | cpp |
p02293 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs(a - b) < EPS)
class Point {
public:
double x, y;
Point(double x_ = 0, double y_ = 0) {
x = x_;
y = y_;
}
Point operator+(Point p) { return Point(x + p.x, y + p.y); };
Point... | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs(a - b) < EPS)
class Point {
public:
double x, y;
Point(double x_ = 0, double y_ = 0) {
x = x_;
y = y_;
}
Point operator+(Point p) { return Point(x + p.x, y + p.y); };
Point... | [
"control_flow.branch.if.condition.change"
] | 127,996 | 127,997 | u173597612 | cpp |
p02293 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
#define Rep(b, e, i) for... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
#define Rep(b, e, i) for... | [
"expression.operation.binary.remove"
] | 128,000 | 128,001 | u098441168 | cpp |
p02293 | #include <algorithm> // require sort next_permutation count __gcd reverse etc.
#include <cctype> // require tolower, toupper
#include <cfloat>
#include <climits>
#include <cmath> // require fabs
#include <cstdio> // require scanf printf
#include <cstdlib> // require abs exit atof atoi
#include <cstring> // requir... | #include <algorithm> // require sort next_permutation count __gcd reverse etc.
#include <cctype> // require tolower, toupper
#include <cfloat>
#include <climits>
#include <cmath> // require fabs
#include <cstdio> // require scanf printf
#include <cstdlib> // require abs exit atof atoi
#include <cstring> // requir... | [
"control_flow.branch.if.condition.change",
"call.add"
] | 128,008 | 128,009 | u597396610 | cpp |
p02294 | #include <bits/stdc++.h>
#define ll long long
//#define int long long
#define inf 0x3f3f3f3f
#define fi first
#define se second
#define pb push_back
#define pa pair<int, int>
#define mkp(a, b) make_pair(a, b)
const int N = 2e5 + 10;
const int mod = 998244353;
using namespace std;
struct Point {
int x, y;
Point() {... | #include <bits/stdc++.h>
#define ll long long
//#define int long long
#define inf 0x3f3f3f3f
#define fi first
#define se second
#define pb push_back
#define pa pair<int, int>
#define mkp(a, b) make_pair(a, b)
const int N = 2e5 + 10;
const int mod = 998244353;
using namespace std;
struct Point {
int x, y;
Point() {... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,029 | 128,030 | u523263006 | cpp |
p02294 | #include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
using namespace std;
typedef complex<double> xy;
double eps = 1e-9;
double dot_product(xy a, xy b) { return (conj(a) * b).real(); }
double cross_product(xy a, xy b) { return (conj(a) * b).imag(); }
xy projection(xy p, xy b) { return b * dot_prod... | #include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
using namespace std;
typedef complex<double> xy;
double eps = 1e-9;
double dot_product(xy a, xy b) { return (conj(a) * b).real(); }
double cross_product(xy a, xy b) { return (conj(a) * b).imag(); }
xy projection(xy p, xy b) { return b * dot_prod... | [
"identifier.change",
"call.function.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 128,033 | 128,034 | u438263800 | cpp |
p02294 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, k, n) for (int i = (k); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) begin(a), end(a)
#define MS(m, v) memset(m, v, sizeof(m))
#define D10 fixed << setprecision(10)
typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int, int> P;
ty... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, k, n) for (int i = (k); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) begin(a), end(a)
#define MS(m, v) memset(m, v, sizeof(m))
#define D10 fixed << setprecision(10)
typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int, int> P;
ty... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 128,035 | 128,036 | u877319405 | cpp |
p02294 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-8;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operation.unary.add",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 128,037 | 128,038 | u923320778 | cpp |
p02294 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-8;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 128,039 | 128,038 | u923320778 | cpp |
p02294 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 128,040 | 128,038 | u923320778 | cpp |
p02294 | #include <bits/stdc++.h>
#define _overload(_1, _2, _3, name, ...) name
#define _rep(i, n) _range(i, 0, n)
#define _range(i, a, b) for (int i = int(a); i < int(b); ++i)
#define rep(...) _overload(__VA_ARGS__, _range, _rep, )(__VA_ARGS__)
#define _rrep(i, n) _rrange(i, n, 0)
#define _rrange(i, a, b) for (ll i = int(a) ... | #include <bits/stdc++.h>
#define _overload(_1, _2, _3, name, ...) name
#define _rep(i, n) _range(i, 0, n)
#define _range(i, a, b) for (int i = int(a); i < int(b); ++i)
#define rep(...) _overload(__VA_ARGS__, _range, _rep, )(__VA_ARGS__)
#define _rrep(i, n) _rrange(i, n, 0)
#define _rrange(i, a, b) for (ll i = int(a) ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change"
] | 128,041 | 128,042 | u690860505 | cpp |
p02294 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
//???
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Poin... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
//???
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Poin... | [
"identifier.change",
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 128,052 | 128,053 | u639594975 | cpp |
p02294 | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
const ld eps = 1e-8, pi = acos(-1.0);
bool eq(ld a, ld b) { return abs(a - b) < eps; }
using Point = complex<ld>;
class Line {
public:
Point a, b;
};
class Circle {
public:
Point p;
ld r;
};
ld dot(Point a, Point b) { return real(conj(a) * ... | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
const ld eps = 1e-8, pi = acos(-1.0);
bool eq(ld a, ld b) { return abs(a - b) < eps; }
using Point = complex<ld>;
class Line {
public:
Point a, b;
};
class Circle {
public:
Point p;
ld r;
};
ld dot(Point a, Point b) { return real(conj(a) * ... | [
"identifier.change",
"call.function.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 128,090 | 128,091 | u527286045 | cpp |
p02294 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS) //?????????????????????????????????
//??????p0,p1,p2????????????
#define COUNTER_CLOCKWISE 1 //???????????§???????¨????????????´???
#de... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS) //?????????????????????????????????
//??????p0,p1,p2????????????
#define COUNTER_CLOCKWISE 1 //???????????§???????¨????????????´???
#de... | [
"io.output.newline.add"
] | 128,092 | 128,093 | u699373030 | cpp |
p02294 | #include <cmath>
#include <iostream>
using namespace std;
const double EPS = 1e-8;
int dcmp(double d) {
if (fabs(d) < EPS) {
return 0;
}
return d < 0 ? -1 : 1;
}
struct Vector {
double x, y;
Vector(double x = 0, double y = 0) : x(x), y(y) {}
};
typedef Vector Point;
double dot(const Vector &a, const... | #include <cmath>
#include <iostream>
using namespace std;
const double EPS = 1e-8;
int dcmp(double d) {
if (fabs(d) < EPS) {
return 0;
}
return d < 0 ? -1 : 1;
}
struct Vector {
double x, y;
Vector(double x = 0, double y = 0) : x(x), y(y) {}
};
typedef Vector Point;
double dot(const Vector &a, const... | [
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 128,096 | 128,097 | u575994146 | cpp |
p02294 | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
// using ll=long long;
const double EPS = 1e-10;
inline bool equals(double a, double b) { return fabs(a - b) < EPS; }
const double PI = 3.141592653589793238;
class Point {
public:
double x, y;
Point(double x, double y) : x(x), y(y) {}
P... | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
// using ll=long long;
const double EPS = 1e-10;
inline bool equals(double a, double b) { return fabs(a - b) < EPS; }
const double PI = 3.141592653589793238;
class Point {
public:
double x, y;
Point(double x, double y) : x(x), y(y) {}
P... | [] | 128,102 | 128,103 | u110158220 | cpp |
p02294 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
const double kEps = 1e-10;
const double kInf = 1e15;
int dcmp(double x) {
if (fabs(x) < kEps)
return 0;
return x < 0 ? -1 : 1;
}
struct Vector {
double x, y;
Vector() {}
Vector(double x, double y) : x(x),... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
const double kEps = 1e-10;
const double kInf = 1e15;
int dcmp(double x) {
if (fabs(x) < kEps)
return 0;
return x < 0 ? -1 : 1;
}
struct Vector {
double x, y;
Vector() {}
Vector(double x, double y) : x(x),... | [
"call.add",
"call.arguments.change",
"function.return_value.change",
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 128,104 | 128,105 | u990250161 | cpp |
p02294 |
#include <bits/stdc++.h>
using namespace std;
#define eps (1e-10)
struct point {
double x, y;
point() {}
point(double x, double y) : x(x), y(y) {}
point operator+(point &p) { return point(x + p.x, y + p.y); }
point operator-(point &p) { return point(x - p.x, y - p.y); }
point operator*(double k) { return... |
#include <bits/stdc++.h>
using namespace std;
#define eps (1e-10)
struct point {
double x, y;
point() {}
point(double x, double y) : x(x), y(y) {}
point operator+(point &p) { return point(x + p.x, y + p.y); }
point operator-(point &p) { return point(x - p.x, y - p.y); }
point operator*(double k) { return... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 128,107 | 128,108 | u173851820 | cpp |
p02294 | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); }
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
using D = double;
const D PI = acos(D(-1)), E... | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); }
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
using D = double;
const D PI = acos(D(-1)), E... | [
"control_flow.branch.if.condition.change",
"call.add",
"expression.operation.unary.arithmetic.add"
] | 128,112 | 128,113 | u849555829 | cpp |
p02295 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < ((int)(n)); i++)
#define reg(i, a, b) for (int i = ((int)(a)); i <= ((int)(b)); i++)... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < ((int)(n)); i++)
#define reg(i, a, b) for (int i = ((int)(a)); i <= ((int)(b)); i++)... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"expression.operation.binary.remove",
"assignment.change"
] | 128,148 | 128,149 | u182677953 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
#define EPS 1e-10
#define equals(a, b) (fabs((a) - (b)) < EPS)
typedef struct point {
double x, y;
point(){};
point(double x, double y) : x(x), y(y){};
point operator+(point &p) { return point(x + p.x, y + p.y); }
point operator-(point &p) { return point(x - p.x, ... | #include <bits/stdc++.h>
using namespace std;
#define EPS 1e-10
#define equals(a, b) (fabs((a) - (b)) < EPS)
typedef struct point {
double x, y;
point(){};
point(double x, double y) : x(x), y(y){};
point operator+(point &p) { return point(x + p.x, y + p.y); }
point operator-(point &p) { return point(x - p.x, ... | [
"expression.operation.binary.add"
] | 128,197 | 128,198 | u243689028 | cpp |
p02296 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define equals(a, b) (fabs((a) - (b)) < EPS)
const double EPS = (1e-10);
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define equals(a, b) (fabs((a) - (b)) < EPS)
const double EPS = (1e-10);
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.... | [
"call.arguments.change",
"function.return_value.change"
] | 128,210 | 128,211 | u244742296 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
const int dx[] = {0, 1, 0, -1, 1, -1, -1, 1};
const int dy[] = {-1, 0, 1, 0, 1, 1, -1, -1};
const int INF = 1 << 30;
const double EPS = 1e-15;
#define PB push_back
#define mk make_pair
#define fi first
#define se second
#define ll long long
#define reps(i, j, k) for (int i ... | #include <bits/stdc++.h>
using namespace std;
const int dx[] = {0, 1, 0, -1, 1, -1, -1, 1};
const int dy[] = {-1, 0, 1, 0, 1, 1, -1, -1};
const int INF = 1 << 30;
const double EPS = 1e-8;
#define PB push_back
#define mk make_pair
#define fi first
#define se second
#define ll long long
#define reps(i, j, k) for (int i =... | [
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 128,212 | 128,213 | u577850777 | cpp |
p02296 | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define ALL(v) (v).begin(), (v).end()
#define REP(i, p, n) for (int i ... | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define ALL(v) (v).begin(), (v).end()
#define REP(i, p, n) for (int i ... | [
"control_flow.branch.if.condition.change"
] | 128,214 | 128,215 | u562651626 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
namespace arithmetic {
template <typename T> class Addition {
public:
template <typename V> T operator+(const V &v) const {
return T(static_cast<const T &>(*this)) += v;
}
};
template <typename T> class Subtraction {
public:
template <typename V> T operator-(co... | #include <bits/stdc++.h>
using namespace std;
namespace arithmetic {
template <typename T> class Addition {
public:
template <typename V> T operator+(const V &v) const {
return T(static_cast<const T &>(*this)) += v;
}
};
template <typename T> class Subtraction {
public:
template <typename V> T operator-(co... | [
"call.arguments.change",
"function.return_value.change"
] | 128,218 | 128,219 | u823048060 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return real(b * conj(a)); }
double dot(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double cross(P a, P b) { return imag(b * conj(a)); }
double dot(P a, P b) { return real(b * conj(a)); }
P project(P a, P b, P c) {
b -= a;
c -= a;
return... | [
"identifier.change",
"call.function.change",
"function.return_value.change"
] | 128,220 | 128,221 | u923320778 | cpp |
p02296 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
//???
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Poin... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
//???
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Poin... | [
"call.arguments.change",
"function.return_value.change"
] | 128,222 | 128,223 | u639594975 | cpp |
p02296 | #include <algorithm>
#include <cmath>
#include <cstdio>
using namespace std;
#define EPS (1e-10)
#define equals(A, B) (fabs((A) - (B)) < EPS)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point... | #include <algorithm>
#include <cmath>
#include <cstdio>
using namespace std;
#define EPS (1e-10)
#define equals(A, B) (fabs((A) - (B)) < EPS)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point... | [
"call.add",
"call.arguments.change",
"function.return_value.change"
] | 128,224 | 128,225 | u700272293 | cpp |
p02296 | #include <algorithm>
#include <array>
#include <cmath>
#include <iomanip>
#include <iostream>
using Number = double;
const Number EPS = 1e-10;
const Number INF = 1e10;
const Number PI = acos(-1.0);
inline int sign(Number x) { return (x < -EPS) ? -1 : (x > EPS) ? +1 : 0; }
inline bool equal(Number a, Number b) { retu... | #include <algorithm>
#include <array>
#include <cmath>
#include <iomanip>
#include <iostream>
using Number = double;
const Number EPS = 1e-10;
const Number INF = 1e10;
const Number PI = acos(-1.0);
inline int sign(Number x) { return (x < -EPS) ? -1 : (x > EPS) ? +1 : 0; }
inline bool equal(Number a, Number b) { retu... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"expression.operation.unary.add"
] | 128,226 | 128,227 | u589408547 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef complex<double> V;
typedef vector<P> vecP;
typedef pair<P, P> L;
typedef pair<P, P> S;
typedef pair<P, double> C;
const double eps = 1e-8;
const double PI = acos(-1);
const double PI2 = PI * 2.0;
namespace std {
bool operator<(const P &a,... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef complex<double> V;
typedef vector<P> vecP;
typedef pair<P, P> L;
typedef pair<P, P> S;
typedef pair<P, double> C;
const double eps = 1e-8;
const double PI = acos(-1);
const double PI2 = PI * 2.0;
namespace std {
bool operator<(const P &a,... | [
"identifier.change",
"call.arguments.change"
] | 128,234 | 128,235 | u173012975 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
#define P(x) cout << (x) << "\n"
#define p(x) cout << (x)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define vv(type, c, m, n, i) vector<vector<type>> c(m... | #include <bits/stdc++.h>
using namespace std;
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
#define P(x) cout << (x) << "\n"
#define p(x) cout << (x)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define vv(type, c, m, n, i) vector<vector<type>> c(m... | [
"control_flow.branch.if.condition.change"
] | 128,236 | 128,237 | u426534722 | cpp |
p02296 | #include <bits/stdc++.h>
using namespace std;
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
#define P(x) cout << (x) << "\n"
#define p(x) cout << (x)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define vv(type, c, m, n, i) vector<vector<type>> c(m... | #include <bits/stdc++.h>
using namespace std;
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
#define P(x) cout << (x) << "\n"
#define p(x) cout << (x)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define vv(type, c, m, n, i) vector<vector<type>> c(m... | [
"control_flow.branch.if.condition.change"
] | 128,236 | 128,238 | u426534722 | cpp |
p02296 | // #include {{{
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>... | // #include {{{
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>... | [
"literal.number.change",
"variable_declaration.value.change",
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add"
] | 128,239 | 128,240 | u369517173 | cpp |
p02296 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define FORR(i, a, b) for (int i = (a); i >= (b); i--)
typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const double EPS = 1e-9;
struct Vector {
double x, y;
Vecto... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define FORR(i, a, b) for (int i = (a); i >= (b); i--)
typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const double EPS = 1e-9;
struct Vector {
double x, y;
Vecto... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 128,243 | 128,244 | u813270418 | cpp |
p02296 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
struct Point {
double x;
double y;
Point(double x, double y) : x(x), y(y) {}
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
};
typedef Point Vector;
double dot(Vector v1, Vector v2) { return v1.x * v2.x + v1.y * v2.y; }
... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
struct Point {
double x;
double y;
Point(double x, double y) : x(x), y(y) {}
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
};
typedef Point Vector;
double dot(Vector v1, Vector v2) { return v1.x * v2.x + v1.y * v2.y; }
... | [
"control_flow.branch.if.condition.change",
"call.add"
] | 128,247 | 128,248 | u510526182 | cpp |
p02296 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
//点を表す構造体
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) {
this->x = x;
this->y = y;
}
Point operat... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
//点を表す構造体
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) {
this->x = x;
this->y = y;
}
Point operat... | [] | 128,249 | 128,250 | u051103505 | cpp |
p02297 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for (int i = a; i < (int)b; i++)
#define rep(i, n) REP(i, 0, n)
int main() {
int N;
cin >> N;
double x[N], y[N];
rep(i, N) { cin >> x[i] >> y[i]; }
double sum = 0;
rep(i, N) { sum += (x[i] - x[(i + 1) % N]) * (y[i] + y[(i + 1) % N]); }... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for (int i = a; i < (int)b; i++)
#define rep(i, n) REP(i, 0, n)
int main() {
int N;
cin >> N;
double x[N], y[N];
rep(i, N) { cin >> x[i] >> y[i]; }
double sum = 0;
rep(i, N) { sum += (x[i] - x[(i + 1) % N]) * (y[i] + y[(i + 1) % N]); }... | [
"expression.operation.unary.arithmetic.remove",
"call.arguments.change"
] | 128,323 | 128,324 | u228816757 | cpp |
p02297 | #include <bits/stdc++.h>
using namespace std;
const int dx[] = {0, 1, 0, -1, 1, -1, -1, 1};
const int dy[] = {-1, 0, 1, 0, 1, 1, -1, -1};
const int INF = 1 << 30;
const double EPS = 1e-15;
#define PB push_back
#define mk make_pair
#define fi first
#define se second
#define ll long long
#define reps(i, j, k) for (int i ... | #include <bits/stdc++.h>
using namespace std;
const int dx[] = {0, 1, 0, -1, 1, -1, -1, 1};
const int dy[] = {-1, 0, 1, 0, 1, 1, -1, -1};
const int INF = 1 << 30;
const double EPS = 1e-15;
#define PB push_back
#define mk make_pair
#define fi first
#define se second
#define ll long long
#define reps(i, j, k) for (int i ... | [
"call.remove",
"call.arguments.change"
] | 128,333 | 128,334 | u577850777 | cpp |
p02297 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
template <class T> ostream &operator<<(ostream &os, const vector<T> &vs) {
if (vs.empty())
return os << "[]";
os << "[" << vs[0];
for (int i = 1; i < vs.size(); i++)
os ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
template <class T> ostream &operator<<(ostream &os, const vector<T> &vs) {
if (vs.empty())
return os << "[]";
os << "[" << vs[0];
for (int i = 1; i < vs.size(); i++)
os ... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 128,344 | 128,345 | u860016155 | cpp |
p02297 | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
... | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 128,362 | 128,363 | u064467943 | cpp |
p02297 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
// ------ Classes ------ //
class Point {
public:
long double px, py;
Point() : px(0), py(0){};
Point(long double px_, long double py_) : px(px_), py(py_){};
friend bool operator==(const Point &p1, const Point &p2) ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
// ------ Classes ------ //
class Point {
public:
long double px, py;
Point() : px(0), py(0){};
Point(long double px_, long double py_) : px(px_), py(py_){};
friend bool operator==(const Point &p1, const Point &p2) ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 128,366 | 128,367 | u823513038 | cpp |
p02297 | #include <bits/stdc++.h>
using namespace std;
typedef double ll;
struct Point {
ll x, y;
Point() { x = y = 0.0; }
Point(ll _x, ll _y) : x(_x), y(_y) {}
Point operator+(Point p) { return Point(p.x + x, p.y + y); }
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
ll operator*(Point p) { retu... | #include <bits/stdc++.h>
using namespace std;
typedef double ll;
struct Point {
ll x, y;
Point() { x = y = 0.0; }
Point(ll _x, ll _y) : x(_x), y(_y) {}
Point operator+(Point p) { return Point(p.x + x, p.y + y); }
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
ll operator*(Point p) { retu... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"literal.number.change",
"io.output.change"
] | 128,417 | 128,418 | u411997345 | cpp |
p02297 | #include <bits/stdc++.h>
using namespace std;
typedef double ll;
struct Point {
ll x, y;
Point() { x = y = 0.0; }
Point(ll _x, ll _y) : x(_x), y(_y) {}
Point operator+(Point p) { return Point(p.x + x, p.y + y); }
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
ll operator*(Point p) { retu... | #include <bits/stdc++.h>
using namespace std;
typedef double ll;
struct Point {
ll x, y;
Point() { x = y = 0.0; }
Point(ll _x, ll _y) : x(_x), y(_y) {}
Point operator+(Point p) { return Point(p.x + x, p.y + y); }
Point operator-(Point p) { return Point(x - p.x, y - p.y); }
ll operator*(Point p) { retu... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 128,419 | 128,418 | u411997345 | cpp |
p02305 | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pi M_PI
#define inf 1 << 30
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) {... | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pi M_PI
#define inf 1 << 30
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) {... | [
"control_flow.branch.if.condition.change"
] | 128,446 | 128,445 | u064467943 | cpp |
p02305 | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pi M_PI
#define inf 1 << 30
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) {... | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pi M_PI
#define inf 1 << 30
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) {... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 128,447 | 128,445 | u064467943 | cpp |
p02308 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define f first
#define s second
#define mp make_pair
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define f first
#define s second
#define mp make_pair
#define eps (1e-11)
#define equals(a, b) (fabs((a) - (b)) < eps)
using namespace std;
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,464 | 128,465 | u064467943 | cpp |
p02308 | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
const ld eps = 1e-8, pi = acos(-1.0);
bool eq(ld a, ld b) { return abs(a - b) < eps; }
using Point = complex<ld>;
class Line {
public:
Point a, b;
};
ld dot(Point a, Point b) { return real(conj(a) * b); }
ld cross(Point a, Point b) { return ima... | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
const ld eps = 1e-8, pi = acos(-1.0);
bool eq(ld a, ld b) { return abs(a - b) < eps; }
using Point = complex<ld>;
class Line {
public:
Point a, b;
};
ld dot(Point a, Point b) { return real(conj(a) * b); }
ld cross(Point a, Point b) { return ima... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 128,468 | 128,469 | u527286045 | cpp |
p02308 | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
const ld eps = 1e-8, pi = acos(-1.0);
bool eq(ld a, ld b) { return abs(a - b) < eps; }
using Point = complex<ld>;
class Line {
public:
Point a, b;
};
ld dot(Point a, Point b) { return real(conj(a) * b); }
ld cross(Point a, Point b) { return ima... | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
const ld eps = 1e-8, pi = acos(-1.0);
bool eq(ld a, ld b) { return abs(a - b) < eps; }
using Point = complex<ld>;
class Line {
public:
Point a, b;
};
ld dot(Point a, Point b) { return real(conj(a) * b); }
ld cross(Point a, Point b) { return ima... | [
"misc.opposites",
"call.arguments.change",
"function.return_value.change",
"identifier.change",
"control_flow.loop.condition.change",
"expression.operator.compare.change"
] | 128,470 | 128,469 | u527286045 | cpp |
p02308 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef complex<double> V;
typedef vector<P> vecP;
typedef pair<P, P> L;
typedef pair<P, P> S;
typedef pair<P, double> C;
const double eps = 1e-8;
const double PI = acos(-1);
const double PI2 = PI * 2.0;
namespace std {
bool operator<(const P &a,... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef complex<double> V;
typedef vector<P> vecP;
typedef pair<P, P> L;
typedef pair<P, P> S;
typedef pair<P, double> C;
const double eps = 1e-8;
const double PI = acos(-1);
const double PI2 = PI * 2.0;
namespace std {
bool operator<(const P &a,... | [
"identifier.change",
"call.function.change"
] | 128,471 | 128,472 | u173012975 | cpp |
p02308 | #include <bits/stdc++.h>
using namespace std;
// point
typedef complex<double> P;
namespace std {
bool operator<(const P &a, const P &b) {
return real(a) != real(b) ? real(a) < real(b) : imag(a) < imag(b);
}
bool cmp_y(const P &a, const P &b) {
return a.imag() != b.imag() ? a.imag() < b.imag() : a.real() < b.real(... | #include <bits/stdc++.h>
using namespace std;
// point
typedef complex<double> P;
namespace std {
bool operator<(const P &a, const P &b) {
return real(a) != real(b) ? real(a) < real(b) : imag(a) < imag(b);
}
bool cmp_y(const P &a, const P &b) {
return a.imag() != b.imag() ? a.imag() < b.imag() : a.real() < b.real(... | [
"call.add"
] | 128,473 | 128,474 | u130728191 | cpp |
p02308 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define INF 1 << 30
#define LINF 1LL << 60
typedef long double ld;
typedef complex<ld> Point;
const ld eps = 1e-9, pi = acos(-1.0);
namespace std {
bool operator<(const Point &lhs, const Point &rhs... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define INF 1 << 30
#define LINF 1LL << 60
typedef long double ld;
typedef complex<ld> Point;
const ld eps = 1e-9, pi = acos(-1.0);
namespace std {
bool operator<(const Point &lhs, const Point &rhs... | [
"identifier.change",
"call.function.change",
"io.output.change"
] | 128,475 | 128,476 | u929568713 | cpp |
p02308 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define INF 1 << 30
#define LINF 1LL << 60
typedef long double ld;
typedef complex<ld> Point;
const ld eps = 1e-9, pi = acos(-1.0);
namespace std {
bool operator<(const Point &lhs, const Point &rhs... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define INF 1 << 30
#define LINF 1LL << 60
typedef long double ld;
typedef complex<ld> Point;
const ld eps = 1e-9, pi = acos(-1.0);
namespace std {
bool operator<(const Point &lhs, const Point &rhs... | [
"identifier.change",
"call.function.change"
] | 128,477 | 128,476 | u929568713 | cpp |
p02308 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double cx = 0, cy = 0, r = 0;
int q = 0;
int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
cin >> cx >> cy >> r >> q;
for (int i = 0; i < q; i++) {
cin >> x1 >> y1 >> x2 >> y2;
double a = 0, b = 0, s = 0, t = 0, u = 0, v1 ... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double cx = 0, cy = 0, r = 0;
int q = 0;
double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
cin >> cx >> cy >> r >> q;
for (int i = 0; i < q; i++) {
cin >> x1 >> y1 >> x2 >> y2;
double a = 0, b = 0, s = 0, t = 0, u = 0, ... | [
"variable_declaration.type.primitive.change"
] | 128,478 | 128,479 | u604920879 | cpp |
p02308 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
ll read() {
ll x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getchar... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
ll read() {
ll x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getchar... | [
"identifier.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 128,480 | 128,481 | u730001417 | cpp |
p02300 | #include <bits/stdc++.h>
using namespace std;
#define mo 100005
struct node {
int x, y;
} d[mo], p[mo];
int chaji(node a, node b, node c) {
return ((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x));
}
bool cmp(node a, node b) {
if (a.y != b.y)
return a.y < b.y;
return a.x < b.x;
}
void run(int n) {
... | #include <bits/stdc++.h>
using namespace std;
#define mo 100005
struct node {
int x, y;
} d[mo], p[mo];
int chaji(node a, node b, node c) {
return ((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x));
}
bool cmp(node a, node b) {
if (a.y != b.y)
return a.y < b.y;
return a.x < b.x;
}
void run(int n) {
... | [
"expression.operation.binary.add"
] | 128,482 | 128,483 | u402560117 | cpp |
p02300 | #include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG_MODE
#define DBG(n) n;
#else
#define DBG(n) ;
#endif
#define REP(i, n) for (ll(i) = (0); (i) < (n); ++i)
#define rep(i, s, g) for (ll(i) = (s); (i) < (g); ++i)
#define rrep(i, s, g) for (ll(i) = (s); i >= (g); --(i))
#define PB push_back
#define MP make_pair
... | #include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG_MODE
#define DBG(n) n;
#else
#define DBG(n) ;
#endif
#define REP(i, n) for (ll(i) = (0); (i) < (n); ++i)
#define rep(i, s, g) for (ll(i) = (s); (i) < (g); ++i)
#define rrep(i, s, g) for (ll(i) = (s); i >= (g); --(i))
#define PB push_back
#define MP make_pair
... | [
"control_flow.branch.if.condition.change"
] | 128,485 | 128,486 | u597618525 | cpp |
p02300 | #include <algorithm>
#include <bitset>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
#define _USE_MATH_DEFINES
using namespace std;
typedef long long ll;
... | #include <algorithm>
#include <bitset>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
#define _USE_MATH_DEFINES
using namespace std;
typedef long long ll;
... | [
"io.output.change"
] | 128,487 | 128,488 | u678214067 | cpp |
p02301 | #include <bits/stdc++.h>
using namespace std;
#define EPS 1e-10
#define equal(a, b) (fabs(a - b) < EPS)
#define not_equal(a, b) (!equal(a, b))
#define lt(a, b) (a - b < -EPS)
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator+(const Point &p) const { return Poin... | #include <bits/stdc++.h>
using namespace std;
#define EPS 1e-10
#define equal(a, b) (fabs(a - b) < EPS)
#define not_equal(a, b) (!equal(a, b))
#define lt(a, b) (a - b < -EPS)
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator+(const Point &p) const { return Poin... | [
"identifier.change",
"call.arguments.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 128,539 | 128,540 | u881100444 | cpp |
p02301 | #include <iostream>
using namespace std;
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <iomanip>
struct Point {
double x, y;
};
Point set_p(double a, double b) {
Point p;
p.x = a;
p.y = b;
return p;
}
struct Vector {
double vx, vy;
};
Vector set_v(const Point &p1, c... | #include <iostream>
using namespace std;
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <iomanip>
struct Point {
double x, y;
};
Point set_p(double a, double b) {
Point p;
p.x = a;
p.y = b;
return p;
}
struct Vector {
double vx, vy;
};
Vector set_v(const Point &p1, c... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 128,545 | 128,546 | u986478725 | cpp |
p02301 | #include <bits/stdc++.h>
using namespace std;
using db = double;
const db eps = 1e-9;
int sgn(db a, db b = 0) {
a -= b;
return (a > eps) - (a < -eps);
}
struct poi {
db x, y;
poi operator-(poi p) { return {x - p.x, y - p.y}; }
bool operator<(poi p) const { return tie(x, y) < tie(p.x, p.y); }
db cross(poi ... | #include <bits/stdc++.h>
using namespace std;
using db = double;
const db eps = 1e-9;
int sgn(db a, db b = 0) {
a -= b;
return (a > eps) - (a < -eps);
}
struct poi {
db x, y;
poi operator-(poi p) { return {x - p.x, y - p.y}; }
bool operator<(poi p) const { return tie(x, y) < tie(p.x, p.y); }
db cross(poi ... | [
"literal.number.change"
] | 128,547 | 128,548 | u296631814 | cpp |
p02301 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef complex<double> V;
typedef vector<P> vecP;
typedef pair<P, P> L;
typedef pair<P, P> S;
typedef pair<P, double> C;
const double eps = 1e-8;
const double PI = acos(-1);
const double PI2 = PI * 2.0;
namespace std {
bool operator<(const P &a,... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef complex<double> V;
typedef vector<P> vecP;
typedef pair<P, P> L;
typedef pair<P, P> S;
typedef pair<P, double> C;
const double eps = 1e-8;
const double PI = acos(-1);
const double PI2 = PI * 2.0;
namespace std {
bool operator<(const P &a,... | [
"call.add",
"call.arguments.change",
"function.return_value.change"
] | 128,551 | 128,552 | u173012975 | cpp |
p02301 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define trav(a, x) for (auto &a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
#define scanf nope
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
template <class T> struct P... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define trav(a, x) for (auto &a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
#define scanf nope
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
template <class T> struct P... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,553 | 128,554 | u231199264 | cpp |
p02301 | #include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG_MODE
#define DBG(n) n;
#else
#define DBG(n) ;
#endif
#define REP(i, n) for (ll(i) = (0); (i) < (n); ++i)
#define rep(i, s, g) for (ll(i) = (s); (i) < (g); ++i)
#define rrep(i, s, g) for (ll(i) = (s); i >= (g); --(i))
#define PB push_back
#define MP make_pair
... | #include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG_MODE
#define DBG(n) n;
#else
#define DBG(n) ;
#endif
#define REP(i, n) for (ll(i) = (0); (i) < (n); ++i)
#define rep(i, s, g) for (ll(i) = (s); (i) < (g); ++i)
#define rrep(i, s, g) for (ll(i) = (s); i >= (g); --(i))
#define PB push_back
#define MP make_pair
... | [
"call.add",
"call.arguments.change",
"function.return_value.change",
"io.output.change"
] | 128,560 | 128,561 | u597618525 | cpp |
p02302 | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#... | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 128,566 | 128,567 | u222195708 | cpp |
p02298 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
typedef complex<double> xy;
double eps = 1e-9;
double dot_product(xy a, xy b) { return (conj(a) * b).real(); }
double cross_product(xy a, xy b) { return (conj(a) * b).imag(); }
double d... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
typedef complex<double> xy;
double eps = 1e-9;
double dot_product(xy a, xy b) { return (conj(a) * b).real(); }
double cross_product(xy a, xy b) { return (conj(a) * b).imag(); }
double d... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 128,629 | 128,630 | u438263800 | cpp |
p02298 | #include <complex>
#include <iostream>
#include <vector>
using namespace std;
typedef complex<double> point;
double cross(const point &a, const point &b) { return imag(conj(a) * b); }
double dot(const point &a, const point &b) { return real(conj(a) * b); }
int ccw(point a, point b, point c) {
b -= a;
c -= a;
if ... | #include <complex>
#include <iostream>
#include <vector>
using namespace std;
typedef complex<double> point;
double cross(const point &a, const point &b) { return imag(conj(a) * b); }
double dot(const point &a, const point &b) { return real(conj(a) * b); }
int ccw(point a, point b, point c) {
b -= a;
c -= a;
if ... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 128,631 | 128,632 | u759949288 | cpp |
p02298 | #include <complex>
#include <iostream>
#include <vector>
using namespace std;
#define X real()
#define Y imag()
#define EPS (1e-10)
typedef complex<double> P;
typedef P Vec;
double dot(Vec v1, Vec v2) { return (v1 * conj(v2)).X; }
double cross(Vec v1, Vec v2) { return (v1 * conj(v2)).Y; }
enum { COUNTER_CLOCKWISE,... | #include <complex>
#include <iostream>
#include <vector>
using namespace std;
#define X real()
#define Y imag()
#define EPS (1e-10)
typedef complex<double> P;
typedef P Vec;
double dot(Vec v1, Vec v2) { return (v1 * conj(v2)).X; }
double cross(Vec v1, Vec v2) { return (v1 * conj(v2)).Y; }
enum { COUNTER_CLOCKWISE,... | [
"control_flow.loop.for.condition.change"
] | 128,635 | 128,636 | u228816757 | cpp |
p02298 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define curr(P, i) P[(i) % P.size()]
#define next(P, i) P[(i + 1) % P.size()]
#define prev(P, i) P[(i + P.size() - 1) % P.size()]
using namespace std;
typedef double Real;
Real EPS = 1e-... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define curr(P, i) P[(i) % P.size()]
#define next(P, i) P[(i + 1) % P.size()]
#define prev(P, i) P[(i + P.size() - 1) % P.size()]
using namespace std;
typedef double Real;
Real EPS = 1e-... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 128,641 | 128,642 | u047988051 | cpp |
p02298 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define curr(P, i) P[(i) % P.size()]
#define next(P, i) P[(i + 1) % P.size()]
#define prev(P, i) P[(i + P.size() - 1) % P.size()]
using namespace std;
typedef double Real;
Real EPS = 1e-... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define curr(P, i) P[(i) % P.size()]
#define next(P, i) P[(i + 1) % P.size()]
#define prev(P, i) P[(i + P.size() - 1) % P.size()]
using namespace std;
typedef double Real;
Real EPS = 1e-... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 128,643 | 128,642 | u047988051 | cpp |
p02298 | #include <bits/stdc++.h>
using namespace std;
#define EPS 1e-10
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator-(const Point &p) const { return Point(x - p.x, y - p.y); }
};
double dot(const Point &a, const Point &b) { return a.x * b.x + a.y * b.y; }
double ... | #include <bits/stdc++.h>
using namespace std;
#define EPS 1e-10
struct Point {
double x, y;
Point() {}
Point(double x, double y) : x(x), y(y) {}
Point operator-(const Point &p) const { return Point(x - p.x, y - p.y); }
};
double dot(const Point &a, const Point &b) { return a.x * b.x + a.y * b.y; }
double ... | [
"control_flow.loop.for.condition.change"
] | 128,644 | 128,645 | u881100444 | cpp |
p02298 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
#define pb push_back
#define mp make_pair
#define it ::ite... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
#define pb push_back
#define mp make_pair
#define it ::ite... | [
"control_flow.branch.if.condition.change"
] | 128,648 | 128,649 | u214600613 | cpp |
p02298 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
#define pb push_back
#define mp make_pair
#define it ::ite... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
#define pb push_back
#define mp make_pair
#define it ::ite... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,650 | 128,649 | u214600613 | cpp |
p02298 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
template <class T> ostream &operator<<(ostream &os, const vector<T> &vs) {
if (vs.empty())
return os << "[]";
os << "[" << vs[0];
for (int i = 1; i < vs.size(); i++)
os ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
template <class T> ostream &operator<<(ostream &os, const vector<T> &vs) {
if (vs.empty())
return os << "[]";
os << "[" << vs[0];
for (int i = 1; i < vs.size(); i++)
os ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,651 | 128,652 | u860016155 | cpp |
p02298 | #include <bits/stdc++.h>
using namespace std;
namespace arithmetic {
template <typename T> class Addition {
public:
template <typename V> T operator+(const V &v) const {
return T(static_cast<const T &>(*this)) += v;
}
};
template <typename T> class Subtraction {
public:
template <typename V> T operator-(co... | #include <bits/stdc++.h>
using namespace std;
namespace arithmetic {
template <typename T> class Addition {
public:
template <typename V> T operator+(const V &v) const {
return T(static_cast<const T &>(*this)) += v;
}
};
template <typename T> class Subtraction {
public:
template <typename V> T operator-(co... | [] | 128,653 | 128,654 | u823048060 | cpp |
p02298 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef vector<P> vec;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double dot(P a, P b) { return real(b * conj(a)); }
double cross(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b ... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef vector<P> vec;
double eps = 1e-7;
bool eq(double a, double b) { return (b - a < eps && a - b < eps); }
double dot(P a, P b) { return real(b * conj(a)); }
double cross(P a, P b) { return imag(b * conj(a)); }
P project(P a, P b, P c) {
b ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,659 | 128,658 | u923320778 | cpp |
p02298 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
// ------ Classes ------ //
class Point {
public:
long double px, py;
Point() : px(0), py(0){};
Point(long double px_, long double py_) : px(px_), py(py_){};
friend bool operator==(const Point &p1, const Point &p2) ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
// ------ Classes ------ //
class Point {
public:
long double px, py;
Point() : px(0), py(0){};
Point(long double px_, long double py_) : px(px_), py(py_){};
friend bool operator==(const Point &p1, const Point &p2) ... | [
"expression.operation.unary.arithmetic.remove"
] | 128,660 | 128,661 | u823513038 | cpp |
p02298 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned int;
using vi = vector<int>;
using vb = vector<bool>;
using vd = vector<double>;
using vl = vector<ll>;
using vvi = vector<vi>;
using vvb = vector<vb>;
using vvd = vector<vd... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned int;
using vi = vector<int>;
using vb = vector<bool>;
using vd = vector<double>;
using vl = vector<ll>;
using vvi = vector<vi>;
using vvb = vector<vb>;
using vvd = vector<vd... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 128,662 | 128,663 | u582652871 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.