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 |
|---|---|---|---|---|---|---|---|
p02379 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x1, x2, y1, y2;
double dist;
cin >> x1 >> x2 >> y1 >> y2;
dist = sqrt((y1 - x1) * (y1 - x1) + (y2 - x2) * (y2 - x2));
printf("%.10lf", dist);
return 0;
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x1, x2, y1, y2;
double dist;
cin >> x1 >> x2 >> y1 >> y2;
dist = sqrt((y1 - x1) * (y1 - x1) + (y2 - x2) * (y2 - x2));
printf("%.10lf", dist);
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 134,990 | 134,991 | u808404363 | cpp |
p02379 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double d = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%f\n", d);
return 0;
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double data = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%lf\n", data);
return 0;
} | [
"variable_declaration.type.primitive.change",
"variable_declaration.name.change",
"identifier.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 134,992 | 134,993 | u001068672 | cpp |
p02379 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double data = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%1f\n", data);
return 0;
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double data = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%lf\n", data);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 134,994 | 134,993 | u001068672 | cpp |
p02379 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double data = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%lf\n", data);
return 0;
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double data = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%lf\n", data);
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 134,995 | 134,993 | u001068672 | cpp |
p02379 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double dist = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));
cout << dist << endl;
return 0;
} | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double dist = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));
cout << fixed << dist << endl;
return 0;
} | [
"io.output.change"
] | 134,996 | 134,997 | u189288965 | cpp |
p02379 | #include <cstdio>
long double sqrt(double);
int main(void) {
double d;
double x1, y1, x2, y2, D;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
D = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
sqrt(D);
d = sqrt(D);
printf("%Lf\n", d);
return 0;
}
long double sqrt(double a) {
int i;
long double b = ... | #include <cstdio>
long double sqrt(double);
int main(void) {
long double d;
double x1, y1, x2, y2, D;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
D = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
sqrt(D);
d = sqrt(D);
printf("% 8.8Lf\n", d);
return 0;
}
long double sqrt(double a) {
int i;
long do... | [
"variable_declaration.type.widen.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 135,004 | 135,005 | u827926935 | cpp |
p02379 | #include <cstdio>
long double sqrt(double);
int main(void) {
double d;
double x1, y1, x2, y2, D;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
D = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
sqrt(D);
d = sqrt(D);
printf("% 8.8Lf\n", d);
return 0;
}
long double sqrt(double a) {
int i;
long double ... | #include <cstdio>
long double sqrt(double);
int main(void) {
long double d;
double x1, y1, x2, y2, D;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
D = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
sqrt(D);
d = sqrt(D);
printf("% 8.8Lf\n", d);
return 0;
}
long double sqrt(double a) {
int i;
long do... | [
"variable_declaration.type.widen.change",
"control_flow.loop.for.condition.change"
] | 135,006 | 135,005 | u827926935 | cpp |
p02379 | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double x1, x2, y1, y2, x, y, a, b, p;
cin >> x1 >> y1 >> x2 >> y2;
x = x2 - x1;
y = y2 - y1;
a = x * x;
b = y * y;
p = a + b;
double answer = sqrt(p);
cout << answer << setprecision(8) << endl;
} | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double x1, x2, y1, y2, x, y, a, b, p;
cin >> x1 >> y1 >> x2 >> y2;
x = x2 - x1;
y = y2 - y1;
a = x * x;
b = y * y;
p = a + b;
double answer = sqrt(p);
cout << fixed << setprecision(8) << answer << endl;
} | [
"identifier.change",
"io.output.change"
] | 135,007 | 135,008 | u671466479 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double d = sqrt((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
printf("%lf\n", d);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double d = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
printf("%lf\n", d);
return 0;
} | [
"call.arguments.change"
] | 135,016 | 135,017 | u734413170 | cpp |
p02379 | #include <math.h>
#include <stdio.h>
int main(void) {
double answer, px, py, p2x, p2y, tate, yoko;
scanf("%lf %lf %lf $lf", &px, &py, &p2x, &p2y);
if (py < p2y) {
tate = p2y - py;
} else if (p2y < py) {
tate = py - p2y;
} else {
tate = 0;
}
if (px < p2x) {
yoko = p2x - px;
} else if (p... | #include <math.h>
#include <stdio.h>
int main(void) {
double answer, px, py, p2x, p2y, tate, yoko;
scanf("%lf %lf %lf %lf", &px, &py, &p2x, &p2y);
if (py < p2y) {
tate = p2y - py;
} else if (p2y < py) {
tate = py - p2y;
} else {
tate = 0;
}
if (px < p2x) {
yoko = p2x - px;
} else if (p2... | [
"literal.string.change",
"call.arguments.change"
] | 135,021 | 135,022 | u039188270 | cpp |
p02379 | /*
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_10_A
*/
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(5) << sqrt((x2 - x1) * (x2 - x1) + (y2 ... | /*
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_10_A
*/
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(10)
<< sqrt((x2 - x1) * (x2 - x1... | [
"literal.number.change",
"io.output.change"
] | 135,026 | 135,024 | u901451589 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
//---------------------------------------
//---------------------------------------
int main(void) {
int x1, y1, x2, y2;
cout << fixed << setprecision(4);
cin >> x1;
cin >> y1;
cin >> x2;
cin >> y2;
cout << sqrt(pow((x1 - x2),... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
//---------------------------------------
//---------------------------------------
int main(void) {
double x1, y1, x2, y2;
cout << fixed << setprecision(4);
cin >> x1;
cin >> y1;
cin >> x2;
cin >> y2;
cout << sqrt(pow((x1 - x... | [
"variable_declaration.type.primitive.change"
] | 135,029 | 135,030 | u772369495 | cpp |
p02379 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
// freopen("in.txt", "r", stdin);
double x1, x2, y1, y2;
double result;
cin >> x1 >> y1 >> x2 >> y2;
result = sqrt(pow(x1 + x2, 2) + pow(y1 + y2, 2));
printf("%.4lf", result);
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
// freopen("in.txt", "r", stdin);
double x1, x2, y1, y2;
double result;
cin >> x1 >> y1 >> x2 >> y2;
result = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
printf("%.4lf", result);
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,037 | 135,038 | u080088261 | cpp |
p02379 | #include <math.h>
#include <stdio.h>
int main() {
double a, b, c, d;
scanf("%lf %lf %lf %lf", &a, &b, &c, &d);
printf("%???f\n", sqrt((a - c) * (a - c) + (b - d) * (b - d)));
return 0;
} | #include <math.h>
#include <stdio.h>
int main() {
double a, b, c, d;
scanf("%lf %lf %lf %lf", &a, &b, &c, &d);
printf("%lf\n", sqrt((a - c) * (a - c) + (b - d) * (b - d)));
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,039 | 135,040 | u253376705 | cpp |
p02379 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << sqrt(pow(y2 - y1, 2) + pow(x2 - x1, 2)) << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
long double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << sqrt(pow(y2 - y1, 2) + pow(x2 - x1, 2)) << endl;
return 0;
} | [
"variable_declaration.type.widen.change",
"io.output.change"
] | 135,041 | 135,042 | u841770308 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
cin >> x1 >> y1 >> x2 >> y2;
cout << setiosflags(ios::showpoint)
<< sqrt(pow((x1 - x2), 2) + pow((y1 - y2), 2)) << endl;
return 0;
} | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(10) << sqrt(pow((x1 - x2), 2) + pow((y1 - y2), 2))
<< endl;
return 0;
} | [
"identifier.change",
"call.function.change",
"io.output.change"
] | 135,044 | 135,045 | u604920879 | cpp |
p02379 | #include <cmath>
#include <iostream>
int main(int argc, const char *argv[]) {
double x1, y1, x2, y2;
std::cin >> x1 >> y1 >> x2 >> y2;
std::cout << std::sqrt(std::pow(x2 - x1, 2.0) + std::pow(y2 - y1, 2.0))
<< std::endl;
return 0;
} | #include <cmath>
#include <iostream>
int main(int argc, const char *argv[]) {
double x1, y1, x2, y2;
std::cin >> x1 >> y1 >> x2 >> y2;
std::cout << std::fixed
<< std::sqrt(std::pow(x2 - x1, 2.0) + std::pow(y2 - y1, 2.0))
<< std::endl;
return 0;
} | [
"expression.operation.binary.add"
] | 135,048 | 135,049 | u319499670 | cpp |
p02379 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
double ans = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
cout << sqrt(ans) << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
double ans = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
cout << fixed << sqrt(ans) << endl;
} | [
"variable_declaration.type.primitive.change",
"io.output.change"
] | 135,050 | 135,051 | u650071126 | cpp |
p02379 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
double ans = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
cout << fixed << sqrt(ans) << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
double ans = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
cout << fixed << sqrt(ans) << endl;
} | [
"variable_declaration.type.primitive.change"
] | 135,052 | 135,051 | u650071126 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(void) {
int x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
double distance = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
cout << fixed << distance << endl;
return 0;
} | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(void) {
double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
double distance = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
cout << setprecision(10) << distance << endl;
return 0;
} | [
"variable_declaration.type.primitive.change",
"io.output.change",
"call.arguments.add"
] | 135,053 | 135,054 | u063254329 | cpp |
p02379 | #include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(5) << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
}
| #include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(15) << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)) << endl;
}
| [
"literal.number.change",
"io.output.change",
"io.output.newline.add"
] | 135,060 | 135,061 | u721602113 | cpp |
p02379 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
double a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
double d = sqrt((a - c) * (a - c) + (b - d) * (b - d));
printf("%.6f\n", d);
}
| #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
double a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
double e = sqrt((a - c) * (a - c) + (b - d) * (b - d));
printf("%.6f\n", e);
}
| [
"variable_declaration.name.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 135,063 | 135,064 | u438263800 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << fixed << setprecision(8)
<< sqrt((a - c) * (a - c) + (b - d) * (b - d)) << endl;
}
| #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
cout << fixed << setprecision(8)
<< sqrt((a - c) * (a - c) + (b - d) * (b - d)) << endl;
cin >> a;
}
| [
"variable_declaration.type.primitive.change"
] | 135,065 | 135,066 | u643494333 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double dist = 0.0 + sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
cout << setprecision(9) << dist << endl;
return 0;
}
| #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double dist = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
cout << setprecision(15) << dist << endl;
return 0;
}
| [
"variable_declaration.type.primitive.change",
"expression.operation.binary.remove",
"literal.number.change",
"io.output.change"
] | 135,067 | 135,068 | u052462985 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(10) << fixed
<< sqrt((pow(x1 - x2, 2) + pow(y1 - y2, 2)) * 1.0) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(10) << fixed
<< sqrt((pow(x1 - x2, 2) + pow(y1 - y2, 2)) * 1.0) << endl;
}
| [
"variable_declaration.type.primitive.change"
] | 135,072 | 135,073 | u470979787 | cpp |
p02379 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double x;
int a, b, c, d;
cin >> a >> b >> c >> d;
x = ((c - a) * (c - a)) + ((d - b) * (d - b));
printf("%.6f \n", sqrt(x));
}
| #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double x;
double a, b, c, d;
cin >> a >> b >> c >> d;
x = ((c - a) * (c - a)) + ((d - b) * (d - b));
printf("%.6f \n", sqrt(x));
}
| [
"variable_declaration.type.primitive.change"
] | 135,074 | 135,075 | u610263790 | cpp |
p02379 | #include <cmath>
#include <cstdio>
#include <cstdlib>
int main() {
double x1, y1, x2, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
double dx = abs(x1 - x2);
double dy = abs(y1 - y2);
double dis = sqrt(dx * dx + dy * dy);
printf("%f\n", dis);
return 0;
}
| #include <cmath>
#include <cstdio>
using namespace std;
int main() {
double x1, y1, x2, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
double dx = abs(x1 - x2);
double dy = abs(y1 - y2);
double dis = sqrt(dx * dx + dy * dy);
printf("%f\n", dis);
return 0;
}
| [] | 135,078 | 135,079 | u173380514 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
float x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(5) << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
}
| #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(20) << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
}
| [
"variable_declaration.type.primitive.change",
"literal.number.change",
"io.output.change"
] | 135,080 | 135,081 | u983010870 | cpp |
p02379 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout /*<< setprecision(5)*/ << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
}
| #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(20) << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
}
| [
"io.output.change"
] | 135,082 | 135,081 | u983010870 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x1, y1, x2, y2;
double ans;
cin >> x1 >> y1 >> x2 >> y2;
ans = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
printf("%.8lf\n", ans);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
double ans;
cin >> x1 >> y1 >> x2 >> y2;
ans = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
printf("%.5lf\n", ans);
return 0;
}
| [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,086 | 135,087 | u575569688 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x1, y1, x2, y2;
double ans;
cin >> x1 >> y1 >> x2 >> y2;
ans = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
printf("%.5lf\n", ans);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
double ans;
cin >> x1 >> y1 >> x2 >> y2;
ans = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
printf("%.5lf\n", ans);
return 0;
}
| [
"variable_declaration.type.primitive.change"
] | 135,088 | 135,087 | u575569688 | cpp |
p02379 | // clang-format off
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define main signed main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecision(n)... | // clang-format off
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define main signed main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecision(n)... | [
"variable_declaration.type.primitive.change"
] | 135,089 | 135,090 | u449960815 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
double x1, x2, y1, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << setprecision(10)
<< sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) << endl;
}
| [
"io.output.change"
] | 135,091 | 135,092 | u340914015 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << setprecision(8)
<< sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << setprecision(8)
<< sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
return 0;
}
| [
"variable_declaration.type.primitive.change"
] | 135,093 | 135,094 | u268387825 | cpp |
p02379 | #include <math.h>
#include <stdio.h>
int main(void) {
// Your code here!
int x1, y1, x2, y2;
scanf("%d", &x1);
scanf("%d", &y1);
scanf("%d", &x2);
scanf("%d", &y2);
printf("%.8lf\n", pow((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1), 0.5));
return 0;
}
| #include <math.h>
#include <stdio.h>
int main(void) {
double x1, y1, x2, y2;
scanf("%lf", &x1);
scanf("%lf", &y1);
scanf("%lf", &x2);
scanf("%lf", &y2);
printf("%.8lf\n", pow((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1), 0.5));
return 0;
}
| [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 135,095 | 135,096 | u632711632 | cpp |
p02379 | #include "cmath"
#include "iostream"
#include "stdio.h"
using namespace std;
int main(int argc, char const *argv[]) {
double x1, y1, x2, y2 = 0;
cin >> x1 >> y2 >> x2 >> y2;
printf("%f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
return 0;
}
| #include "cmath"
#include "iostream"
#include "stdio.h"
using namespace std;
int main(int argc, char const *argv[]) {
double x1, y1, x2, y2 = 0;
cin >> x1 >> y1 >> x2 >> y2;
printf("%.10f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
return 0;
}
| [
"identifier.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,099 | 135,100 | u488842924 | cpp |
p02379 | #include "cmath"
#include "iostream"
#include "stdio.h"
using namespace std;
int main(int argc, char const *argv[]) {
long double x1, y1, x2, y2 = 0;
cin >> x1 >> y2 >> x2 >> y2;
printf("%.5Lf\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
return 0;
}
| #include "cmath"
#include "iostream"
#include "stdio.h"
using namespace std;
int main(int argc, char const *argv[]) {
double x1, y1, x2, y2 = 0;
cin >> x1 >> y1 >> x2 >> y2;
printf("%.10f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
return 0;
}
| [
"variable_declaration.type.narrow.change",
"identifier.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,101 | 135,100 | u488842924 | cpp |
p02379 | #include "cmath"
#include "iostream"
#include "stdio.h"
using namespace std;
int main(int argc, char const *argv[]) {
long double x1, y1, x2, y2 = 0;
cin >> x1 >> y2 >> x2 >> y2;
printf("%.10Lf\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
return 0;
}
| #include "cmath"
#include "iostream"
#include "stdio.h"
using namespace std;
int main(int argc, char const *argv[]) {
double x1, y1, x2, y2 = 0;
cin >> x1 >> y1 >> x2 >> y2;
printf("%.10f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
return 0;
}
| [
"variable_declaration.type.narrow.change",
"identifier.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,102 | 135,100 | u488842924 | cpp |
p02379 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e;
e = (c - a) * (c - a) + (d - b) * (d - b);
printf("%.7f\n", sqrt(e));
}
| #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
double e;
e = (c - a) * (c - a) + (d - b) * (d - b);
printf("%.7f\n", sqrt(e));
}
| [
"variable_declaration.type.primitive.change"
] | 135,103 | 135,104 | u412537960 | cpp |
p02379 | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double X = (x1 - x2) * (x1 - x2);
double Y = (y1 - y2) * (y1 - y2);
printf("%.1lf\n", sqrt(X + Y));
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
double X = (x1 - x2) * (x1 - x2);
double Y = (y1 - y2) * (y1 - y2);
printf("%.6lf\n", sqrt(X + Y));
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,109 | 135,110 | u935042117 | cpp |
p02379 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
float x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)) << endl;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)) << endl;
return 0;
}
| [
"variable_declaration.type.primitive.change",
"io.output.change"
] | 135,111 | 135,112 | u621234548 | cpp |
p02379 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)) << endl;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)) << endl;
return 0;
}
| [
"io.output.change"
] | 135,113 | 135,112 | u621234548 | cpp |
p02379 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x1, x2, y1, y2, D;
cin >> x1 >> y1 >> x2 >> y2;
D = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
printf("%f%8\n", D);
return 0;
}
| #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x1, x2, y1, y2, D;
cin >> x1 >> y1 >> x2 >> y2;
D = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
printf("%f\n", D);
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,114 | 135,115 | u930842708 | cpp |
p02379 | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(void) {
double a, b, c, d, x, y;
cin >> a >> b >> c >> d;
x = c - a;
y = b - d;
if (x < 0)
x = x * -1;
if (y < 0)
y = y * -1;
printf("%lf\nn", sqrt(x * x + y * y));
return 0;
}
| #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(void) {
double a, b, c, d, x, y;
cin >> a >> b >> c >> d;
x = c - a;
y = b - d;
if (x < 0)
x = x * -1;
if (y < 0)
y = y * -1;
printf("%lf\n", sqrt(x * x + y * y));
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 135,120 | 135,121 | u460296825 | cpp |
p02379 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << endl;
}
| #include <iostream>
#include <math.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << endl;
}
| [
"io.output.change"
] | 135,122 | 135,123 | u906532016 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
#define int long long
// BEGIN CUT HERE
struct LowestCommonAncestor {
const int MAX_LOG_V = 50;
vector<vector<int>> G, parent;
int root = 0, V;
vector<int> depth;
LowestCommonAncestor() {}
LowestCommonAncestor(int V) : V(V) { init(); }
void init() {
for ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
// BEGIN CUT HERE
struct LowestCommonAncestor {
const int MAX_LOG_V = 50;
vector<vector<int>> G, parent;
int root = 0, V;
vector<int> depth;
LowestCommonAncestor() {}
LowestCommonAncestor(int V) : V(V) { init(); }
void init() {
for ... | [] | 135,185 | 135,186 | u924665348 | cpp |
p02373 | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | [] | 135,209 | 135,210 | u553881259 | cpp |
p02373 | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | [
"literal.number.change"
] | 135,209 | 135,211 | u553881259 | cpp |
p02373 | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | [
"literal.number.change"
] | 135,209 | 135,212 | u553881259 | cpp |
p02373 | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | [
"literal.number.change"
] | 135,209 | 135,213 | u553881259 | cpp |
p02373 | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct LowestCommonAncestor {
size_t n;
size_t size() const { return n; }
vector<int> color, parent, depth, topDepth, goUp, visited;
vector<vector<int>> g;
LowestCommonAncestor(size_t n_) : n(n... | [
"literal.number.change"
] | 135,209 | 135,214 | u553881259 | cpp |
p02373 | #include <algorithm>
#include <iostream>
#include <vector>
#define REP(i, n) for (int i = 0; i < int(n); ++i)
#define EACH(i, c) \
for (__typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#define ALL(A) A.begin(), A.end()
using namespace std;
stru... | #include <algorithm>
#include <iostream>
#include <vector>
#define REP(i, n) for (int i = 0; i < int(n); ++i)
#define EACH(i, c) \
for (__typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#define ALL(A) A.begin(), A.end()
using namespace std;
stru... | [] | 135,227 | 135,228 | u047988051 | cpp |
p02373 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define MAX_N 200005
typedef long long ll;
typedef pair<int, int> P;
struct data {
ll x, a, b;
};
int N, Q;
int a, b, c;
vector<int> G[MAX_N];
int p[MAX_N], d[MAX_N], cnt = 0;
vector<int> g, flg;
void rec(int pos, int ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define MAX_N 200005
typedef long long ll;
typedef pair<int, int> P;
struct data {
ll x, a, b;
};
int N, Q;
int a, b, c;
vector<int> G[MAX_N];
int p[MAX_N], d[MAX_N], cnt = 0;
vector<int> g, flg;
void rec(int pos, int ... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 135,231 | 135,232 | u923320778 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
template <typename Monoid> struct DisjointSparseTable {
using F = function<Monoid(Monoid, Monoid)>;
const F &f;
vector<vector<Monoid>> st;
DisjointSparseTable(const vector<Monoid> &v, const F &f) : f(f) {
int b = 0;
while ((1 << b) <= v.size())
++b... | #include <bits/stdc++.h>
using namespace std;
template <typename Monoid> struct DisjointSparseTable {
using F = function<Monoid(Monoid, Monoid)>;
const F &f;
vector<vector<Monoid>> st;
DisjointSparseTable(const vector<Monoid> &v, const F &f) : f(f) {
int b = 0;
while ((1 << b) <= v.size())
++b... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 135,233 | 135,234 | u095377734 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
const int maxn = 100001;
int N, k, cs, P[maxn], lca[maxn][17], L[maxn], Q;
vector<int> A[maxn];
void dfs(int v, int lvl) {
L[v] = lvl;
vector<int>::iterator x = A[v].begin();
for (; x != A[v].end(); ++x)
dfs(*x, lvl + 1);
}
void preLCA() {
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
const int maxn = 100010;
int N, k, cs, P[maxn], lca[maxn][17], L[maxn], Q;
vector<int> A[maxn];
void dfs(int v, int lvl) {
L[v] = lvl;
vector<int>::iterator x = A[v].begin();
for (; x != A[v].end(); ++x)
dfs(*x, lvl + 1);
}
void preLCA() {
for (int i = 0; ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 135,244 | 135,245 | u856201153 | cpp |
p02373 | #include <algorithm>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
#define P pair<int, int>
#define INF (1 << 30)
using namespace std;
vector<int>
Ind(100010); // Ind[n] ??\???n???euler tour??¨??§???????????°?????????
vector<bool> f(100010, false); //
vector<vector<int>> T(100010); //??... | #include <algorithm>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
#define P pair<int, int>
#define INF (1 << 30)
using namespace std;
vector<int>
Ind(100010); // Ind[n] ??\???n???euler tour??¨??§???????????°?????????
vector<bool> f(100010, false); //
vector<vector<int>> T(100010); //??... | [
"identifier.change",
"io.output.change"
] | 135,261 | 135,262 | u929568713 | cpp |
p02373 | #include <algorithm>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
#define P pair<int, int>
#define INF (1 << 30)
using namespace std;
vector<int>
Ind(100010); // Ind[n] ??\???n???euler tour??¨??§???????????°?????????
vector<bool> f(100010, false); //
vector<vector<int>> T(100010); //??... | #include <algorithm>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
#define P pair<int, int>
#define INF (1 << 30)
using namespace std;
vector<int>
Ind(100010); // Ind[n] ??\???n???euler tour??¨??§???????????°?????????
vector<bool> f(100010, false); //
vector<vector<int>> T(100010); //??... | [
"identifier.change",
"io.output.change"
] | 135,261 | 135,263 | u929568713 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | [
"expression.unary.arithmetic.add",
"identifier.change",
"io.output.change"
] | 135,274 | 135,275 | u063091489 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | [
"expression.unary.arithmetic.add"
] | 135,276 | 135,275 | u063091489 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | [
"expression.unary.arithmetic.add",
"identifier.change",
"io.output.change"
] | 135,274 | 135,277 | u063091489 | cpp |
p02373 | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
const int INF = (1LL << 31) - 1;
class SparseTable {
private:
int N;
int H;
vector<vector<int>> data;
vector<int> rdata;
public:
SparseTable(vector<int> rdata) : rdata(rdata) {
N = rdata.size();
H = log2(N);
data.resize(H + 1);
for (int i = 0; ... | [
"expression.unary.arithmetic.add"
] | 135,276 | 135,277 | u063091489 | cpp |
p02373 | #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 SENTINEL 1... | #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 SENTINEL 1... | [
"identifier.change",
"variable_access.subscript.index.change",
"function.return_value.change"
] | 135,288 | 135,289 | u456512109 | cpp |
p02374 | #include <bits/stdc++.h>
using namespace std;
vector<int> G[100010];
#define MAX_N 1 << 17
int n, dat[2 * (MAX_N)-1];
void init(int n_) {
n = 1;
while (n < n_)
n *= 2;
for (int i = 0; i < 2 * n - 1; i++)
dat[i] = 0;
}
int find(int k) {
k += n - 1;
int ans = dat[k];
while (k > 0) {
k = (k - 1)... | #include <bits/stdc++.h>
using namespace std;
vector<int> G[100010];
#define MAX_N 1 << 17
int n, dat[2 * (MAX_N)-1];
void init(int n_) {
n = 1;
while (n < n_)
n *= 2;
for (int i = 0; i < 2 * n - 1; i++)
dat[i] = 0;
}
int find(int k) {
k += n - 1;
int ans = dat[k];
while (k > 0) {
k = (k - 1)... | [
"expression.operation.binary.remove"
] | 135,320 | 135,321 | u278641778 | cpp |
p02380 | #include <bits/stdc++.h>
using namespace std;
int main() {
long double a, b, c;
cin >> a >> b >> c;
// cout<<pow(pow(x2-x1,2)+pow(y2-y1,2),0.5)<<endl;
cout << std::fixed << std::setprecision(10)
<< 0.5 * a * b * sin(c * (M_PI / 180)) << endl
<< a + b + pow(a * a + b * b - 2 * a * b * cos(c * (M_P... | #include <bits/stdc++.h>
using namespace std;
int main() {
long double a, b, c;
cin >> a >> b >> c;
// cout<<pow(pow(x2-x1,2)+pow(y2-y1,2),0.5)<<endl;
cout << std::fixed << std::setprecision(10)
<< 0.5 * a * b * sin(c * (M_PI / 180)) << endl
<< a + b + pow(a * a + b * b - 2 * a * b * cos(c * (M_P... | [
"expression.operation.binary.remove"
] | 135,495 | 135,496 | u803657704 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
// input
int a, b, C;
cin >> a >> b >> C;
// solve
// caution! cos, sin takes radian
double rad;
double PI = acos(-1);
rad = (C * PI) / 180;
long double S, L, h;
S = (a * b * sin(rad)) / 2;
L = a + b + sq... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
// input
int a, b, C;
cin >> a >> b >> C;
// solve
// caution! cos, sin takes radian
double rad;
double PI = acos(-1);
rad = (C * PI) / 180;
long double S, L, h;
S = (a * b * sin(rad)) / 2;
L = a + b + sq... | [
"assignment.change",
"literal.number.change",
"io.output.change"
] | 135,499 | 135,500 | u158856323 | cpp |
p02380 | #include <cmath>
#include <cstdio>
int main() {
int a, b, c, C;
double S, L, h;
double x;
double PI = acos(-1);
scanf("%d %d %d", &a, &b, &C);
x = C * PI / 180;
h = b * sin(x);
S = a * h / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(x));
L = a + b + c;
printf("%f\n%f\n%f\n", S, L, h);
return 0;... | #include <cmath>
#include <cstdio>
int main() {
int a, b, C;
double S, L, h, c;
double x;
double PI = acos(-1);
scanf("%d %d %d", &a, &b, &C);
x = C * PI / 180;
h = b * sin(x);
S = a * h / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(x));
L = a + b + c;
printf("%f\n%f\n%f\n", S, L, h);
return 0;... | [
"variable_declaration.remove",
"variable_declaration.add"
] | 135,501 | 135,502 | u682338610 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, C; // 入力
double c; // 角Cの対角に存在する辺cの長さ
double sinB; // bの対角に存在する角Bのsin
double S, L, h; // 出力(面積, 周の長さ, )
cin >> a >> b >> C;
C = C * M_PI / 180.0; // 角度Cをラジアンに変換
c = sqrt(pow(a, 2) + pow(b, 2) +... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, C; // 入力
double c; // 角Cの対角に存在する辺cの長さ
double sinB; // bの対角に存在する角Bのsin
double S, L, h; // 出力(面積, 周の長さ, )
cin >> a >> b >> C;
C = C * M_PI / 180.0; // 角度Cをラジアンに変換
c = sqrt(pow(a, 2) + pow(b, 2) -... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,503 | 135,504 | u291384080 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, C; // 入力
double c; // 角Cの対角に存在する辺cの長さ
double sinB; // bの対角に存在する角Bのsin
double S, L, h; // 出力(面積, 周の長さ, )
cin >> a >> b >> C;
C = C * M_PI / 180.0; // 角度Cをラジアンに変換
c = sqrt(pow(a, 2) + pow(b, 2) +... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, C; // 入力
double c; // 角Cの対角に存在する辺cの長さ
double sinB; // bの対角に存在する角Bのsin
double S, L, h; // 出力(面積, 周の長さ, )
cin >> a >> b >> C;
C = C * M_PI / 180.0; // 角度Cをラジアンに変換
c = sqrt(pow(a, 2) + pow(b, 2) -... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.change"
] | 135,505 | 135,504 | u291384080 | cpp |
p02380 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, S, L, h, rad;
int c;
double PI = acos(-1);
cin >> a >> b >> c;
rad = c * PI / 180;
S = a * b * sin(rad) / 2;
L = sqrt(a * a + b * b - 2 * a * b * cos(rad));
h = 2 * S / a;
printf("%.8lf\n", S);
pri... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, S, L, h, rad;
int c;
double PI = acos(-1);
cin >> a >> b >> c;
rad = c * PI / 180;
S = a * b * sin(rad) / 2;
L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(rad));
h = 2 * S / a;
printf("%.8lf\n", S... | [
"assignment.change"
] | 135,509 | 135,510 | u023603990 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
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() {
double a, b;
int x;
cin >> a >> b >> x;
double rad = acos(-1) * x / 180.0;
double s = sin(rad) * a * b / 2.0;
printf("%... | #include <cmath>
#include <cstdio>
#include <iostream>
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() {
double a, b;
int x;
cin >> a >> b >> x;
double rad = acos(-1) * x / 180.0;
double s = sin(rad) * a * b / 2.0;
printf("%... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,518 | 135,519 | u811434779 | cpp |
p02380 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | [
"literal.number.change",
"io.output.change"
] | 135,522 | 135,523 | u220216937 | cpp |
p02380 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | [
"assignment.change"
] | 135,524 | 135,523 | u220216937 | cpp |
p02380 | #include <cmath>
#include <iostream>
#include <math.h>
#include <stdio.h>
#define pi 3.1415926535
using namespace std;
int main() {
double a, b, C, S, L, h, cs, cc;
cin >> a >> b >> C;
C = C * pi / 180;
cs = sin(C);
cc = cos(C);
S = a * b * cs / 2;
L = a + b + sqrt(a * a + b * b + 2 * a * b * cc);
h ... | #include <cmath>
#include <iostream>
#include <math.h>
#include <stdio.h>
#define pi 3.1415926535
using namespace std;
int main() {
double a, b, C, S, L, h, cs, cc;
cin >> a >> b >> C;
C = C * pi / 180;
cs = sin(C);
cc = cos(C);
S = a * b * cs / 2;
L = a + b + sqrt(a * a + b * b - 2 * a * b * cc);
h ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,525 | 135,526 | u913726760 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.141592653589793238
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << fixed << setprecision(9) << 1 / 2 * a * b * sin(PI / 180 * c) << endl;
cout << fixed << setprecision(9)
<< a + b + sqrt(a * a + b * b - 2 * a... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.141592653589793238
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << fixed << setprecision(9) << a * b * sin(PI / 180 * c) / 2 << endl;
cout << fixed << setprecision(9)
<< a + b + sqrt(a * a + b * b - 2 * a * b... | [
"expression.operation.binary.remove"
] | 135,527 | 135,528 | u822202919 | cpp |
p02380 | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
double rad = c * M_PI / 180;
cout << fixed;
cout << setprecision(8);
cout << a * b * sin(rad) / 2 << endl;
cout << a + b + sqrt(pow(a, 2) + pow(b, 2) - 2 * a * c * cos(rad)) << ... | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
double rad = c * M_PI / 180;
cout << fixed;
cout << setprecision(8);
cout << a * b * sin(rad) / 2 << endl;
cout << a + b + sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(rad)) << ... | [
"identifier.change",
"io.output.change"
] | 135,529 | 135,530 | u562861626 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, C, angleC, S, L, h;
cin >> a >> b >> C;
angleC = C * M_PI / 180;
S = a * b * sin(angleC) / 2;
L = a + b + sqrt(a * a + b * b - cos(angleC));
h = b * sin(angleC);
cout << fixed << setprecision(5) << S <... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, C, angleC, S, L, h;
cin >> a >> b >> C;
angleC = C * M_PI / 180;
S = a * b * sin(angleC) / 2;
L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(angleC));
h = b * sin(angleC);
cout << fixed << setprecisi... | [
"assignment.change"
] | 135,540 | 135,541 | u166638887 | cpp |
p02380 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
double a, b, C;
cin >> a >> b >> C;
C = C * M_PI / 180.0;
cout << fixed << setprecision(10) << a * b * sin(C) / 2.0 << endl;
double c = sqrt(pow(a, 2.0) + pow(b, ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
double a, b, C;
cin >> a >> b >> C;
C = C * M_PI / 180.0;
cout << fixed << setprecision(10) << a * b * sin(C) / 2.0 << endl;
double c = sqrt(pow(a, 2.0) + pow(b, ... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,542 | 135,543 | u671321649 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define PI 3.1415926
int main() {
int a, b, c;
double S, L, h;
cin >> a >> b >> c;
S = (double)a * b * sin((double)c / 180 * PI) / 2;
h = b * sin((double)c / 180 * PI);
L = a + b + sqrt(a * a + b * b + a * b * cos((double)c / ... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define PI 3.1415926
int main() {
int a, b, c;
double S, L, h;
cin >> a >> b >> c;
S = (double)a * b * sin((double)c / 180 * PI) / 2;
h = b * sin((double)c / 180 * PI);
L = a + b + sqrt(a * a + b * b - 2 * a * b * cos((double)... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.change"
] | 135,546 | 135,547 | u874419660 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define PI 3.1415926
int main() {
int a, b, c;
double S, L, h;
cin >> a >> b >> c;
S = (double)a * b * sin((double)c / 180 * PI) / 2;
h = b * sin((double)c / 180 * PI);
L = a + b + sqrt(a * a + b * b - a * b * cos((double)c / ... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define PI 3.1415926
int main() {
int a, b, c;
double S, L, h;
cin >> a >> b >> c;
S = (double)a * b * sin((double)c / 180 * PI) / 2;
h = b * sin((double)c / 180 * PI);
L = a + b + sqrt(a * a + b * b - 2 * a * b * cos((double)... | [
"assignment.change"
] | 135,548 | 135,547 | u874419660 | cpp |
p02380 | #include <math.h>
#include <stdio.h>
int main() {
double a, b, C, Cd, c2, c, S, L, h, pi;
scanf("%lf%lf%lf", &a, &b, &C);
pi = acos(-1);
Cd = C * pi / 180;
S = 0.5 * a * b * sin(Cd);
c2 = a * a + b * b + 2 * a * b * cos(Cd);
c = sqrt(c2);
L = a + b + c;
h = (2 * S) / a;
printf("%.8f\n", S);
printf... | #include <math.h>
#include <stdio.h>
int main() {
double a, b, C, Cd, c2, c, S, L, h, pi;
scanf("%lf%lf%lf", &a, &b, &C);
pi = acos(-1);
Cd = C * pi / 180;
S = 0.5 * a * b * sin(Cd);
c2 = a * a + b * b - 2 * a * b * cos(Cd);
c = sqrt(c2);
L = a + b + c;
h = (2 * S) / a;
printf("%.8f\n", S);
printf... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 135,549 | 135,550 | u711822251 | cpp |
p02380 | #define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, c, d, h, S, L, C;
cin >> a >> b >> C;
h = b * sin(C * M_PI / 180);
d = b * cos(C * M_PI / 180);
c = sqrt(pow(a - b, 2) + pow(h, 2));
S = a * h / 2;
L = a + ... | #define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, c, d, h, S, L, C;
cin >> a >> b >> C;
h = b * sin(C * M_PI / 180);
d = b * cos(C * M_PI / 180);
c = sqrt(pow(a - d, 2) + pow(h, 2));
S = a * h / 2;
L = a + ... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,551 | 135,552 | u765849500 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
const double PI = 3.141592653;
const double toRad = PI / 180;
int main() {
double a, b, c;
cin >> a >> b >> c;
cout.setf(ios::fixed);
// double sinc;
// sinc = sin(c*toRad);
// cout<<sinc<<endl;
// cout<<c<<endl;
// cout<<si... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
const double PI = 3.141592653;
const double toRad = PI / 180;
int main() {
double a, b, c;
cin >> a >> b >> c;
cout.setf(ios::fixed);
// double sinc;
// sinc = sin(c*toRad);
// cout<<sinc<<endl;
// cout<<c<<endl;
// cout<<si... | [
"assignment.change"
] | 135,553 | 135,554 | u838759969 | cpp |
p02380 | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double a, b, C;
cin >> a >> b >> C;
double S, L, h, r;
r = C * 3.14159265359 / 180;
S = a * b * sin(C) / 2;
L = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(C)) + a + b;
h = S * 2 / a;
cout << setprecision(10);
... | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double a, b, C;
cin >> a >> b >> C;
double S, L, h, r;
r = C * 3.14159265359 / 180;
S = a * b * sin(r) / 2;
L = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(r)) + a + b;
h = S * 2 / a;
cout << setprecision(10);
... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,557 | 135,558 | u829912068 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a, b, c, cRad; // radian
double s, l, h;
double pi = acos(-1); // pi = 3.1415926535...
cin >> a >> b >> cRad;
s = a * b * sin(pi / 180 * cRad) / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(pi / 180 * cRad));
l ... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a, b, c, cRad; // radian
double s, l, h;
double pi = acos(-1); // pi = 3.1415926535...
cin >> a >> b >> cRad;
s = a * b * sin(pi / 180 * cRad) / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(pi / 180 * cRad));
... | [
"variable_declaration.type.primitive.change"
] | 135,563 | 135,564 | u142711691 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
long double a;
long double b;
long double c;
long double s;
long double l;
long double h;
cin >> a >> b >> c;
c = c * (M_PI / 180.0);
s = 0.5 * a * b * sin(c);
l = a + b + sqrt(a * a + b * b - 2.0 * b * c *... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
long double a;
long double b;
long double c;
long double s;
long double l;
long double h;
cin >> a >> b >> c;
c = c * (M_PI / 180.0);
s = 0.5 * a * b * sin(c);
l = a + b + sqrt(a * a + b * b - 2.0 * a * b *... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,565 | 135,566 | u064835577 | cpp |
p02380 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
const double PI = 3.141592653589793;
typedef long long int ... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
const double PI = 3.141592653589793;
typedef long long int ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.change"
] | 135,567 | 135,568 | u496286469 | cpp |
p02380 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
const double PI = 3.141592653589793;
typedef long long int ... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
const double PI = 3.141592653589793;
typedef long long int ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 135,571 | 135,568 | u496286469 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
double a, b, c, s, l, h, PI;
cin >> a >> b >> c;
PI = acos(-1);
c = PI * c / 180;
s = a * b * sin(c) * 0.5;
l = a + b + (a * a + b * b - 2 * a * b * cos(c));
h = b * sin(c);
printf("%lf... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
double a, b, c, s, l, h, PI;
cin >> a >> b >> c;
PI = acos(-1);
c = PI * c / 180;
s = a * b * sin(c) * 0.5;
l = a + b + sqrt((a * a + b * b - 2 * a * b * cos(c)));
h = b * sin(c);
print... | [
"call.add",
"call.arguments.change"
] | 135,573 | 135,574 | u112247126 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
double a, b, c, s, l, h, PI;
cin >> a >> b >> c;
PI = acos(-1);
c = PI * c / 180;
s = a * b * sin(c) * 0.5;
l = sqrt(a + b + (a * a + b * b - 2 * a * b * cos(c)));
h = b * sin(c);
print... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
double a, b, c, s, l, h, PI;
cin >> a >> b >> c;
PI = acos(-1);
c = PI * c / 180;
s = a * b * sin(c) * 0.5;
l = a + b + sqrt((a * a + b * b - 2 * a * b * cos(c)));
h = b * sin(c);
print... | [
"call.remove",
"call.add"
] | 135,575 | 135,574 | u112247126 | cpp |
p02380 | #include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
class triangle {
private:
double a, b, C;
double S, L, h;
public:
int set();
int show();
int cal();
};
int triangle::set() {
cin >> a >> b >> C;
return 0;
}
int triangle::show() {
cout << fixed << S << endl << L <... | #include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
class triangle {
private:
double a, b, C;
double S, L, h;
public:
int set();
int show();
int cal();
};
int triangle::set() {
cin >> a >> b >> C;
return 0;
}
int triangle::show() {
cout << fixed << S << endl << L <... | [
"assignment.change"
] | 135,579 | 135,580 | u515426150 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#define PI 3.1415926535
using namespace std;
int main(void) {
double a, b, rad, h, s, l;
cin >> a >> b >> rad;
rad *= PI / 180;
h = b * sin(rad);
s = a * h * 0.5;
l = a + b + (pow(a, 2) + pow(b, 2) - 2 * a * b * cos(rad));
cout << ... | #include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#define PI 3.1415926535
using namespace std;
int main(void) {
double a, b, rad, h, s, l;
cin >> a >> b >> rad;
rad *= PI / 180;
h = b * sin(rad);
s = a * h * 0.5;
l = a + b + sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(rad));
cout... | [
"call.add"
] | 135,581 | 135,582 | u991772238 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
#define PI 3.141592653589793238
using namespace std;
int main() {
double a, b;
int c;
cin >> a >> b >> c;
double s;
s = a * b * sin(c * PI / 180) / 2;
cout << fixed << s << endl;
cout << a + b + sqrt(a * a + b * b + 2 * a * b * cos(c * PI / 180)) << ... | #include <cmath>
#include <iomanip>
#include <iostream>
#define PI 3.141592653589793238
using namespace std;
int main() {
double a, b;
int c;
cin >> a >> b >> c;
double s;
s = a * b * sin(c * PI / 180) / 2;
cout << fixed << s << endl;
cout << a + b + sqrt(a * a + b * b - 2 * a * b * cos(c * PI / 180)) << ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 135,585 | 135,586 | u835844653 | cpp |
p02380 | #include <iostream>
using namespace std;
#include <cmath>
#include <math.h>
int main() {
double a, b, angle, rad, h, area, c, pi;
cin >> a >> b >> angle;
rad = angle * (M_PI / 180);
h = b * sin(rad);
c = sqrt(pow(a, 2) + pow(b, 2) - cos(rad));
area = ((a * b) / 2) * sin(rad);
cout << fixed;
cout << are... | #include <iostream>
using namespace std;
#include <cmath>
#include <math.h>
int main() {
double a, b, angle, rad, h, area, c, pi;
cin >> a >> b >> angle;
rad = angle * (M_PI / 180);
h = b * sin(rad);
c = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(rad));
area = ((a * b) / 2) * sin(rad);
cout << fixed;
... | [
"assignment.change"
] | 135,590 | 135,591 | u559945002 | cpp |
p02380 | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
int a, b, lC;
double lS, lL, h;
double cRad;
scanf("%d %d %d", &a, &b, &lC);
cRad = lC / 180 * M_PI;
lS = a * b * sin(cRad) / 2;
lL = a + b + sqrt(a * a + b * b - 2 * a * b * cos(cRad));
h = 2 * lS / a;
printf("%f\n%f... | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
int a, b, lC;
double lS, lL, h;
double cRad;
scanf("%d %d %d", &a, &b, &lC);
cRad = lC / 180.0 * M_PI;
lS = a * b * sin(cRad) / 2;
lL = a + b + sqrt(a * a + b * b - 2 * a * b * cos(cRad));
h = 2 * lS / a;
printf("%f\n... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 135,595 | 135,596 | u480054566 | cpp |
p02380 | #include <math.h>
#include <stdio.h>
#define PI 3.141592653589793
int main(void) {
int a, b;
double C, c, S, L, h;
scanf("%d%d%lf", &a, &b, &C);
C = C * PI / 180.0;
S = (double)a * (double)b * sin(C) / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(C));
L = a + b + c;
h = a * sin(C);
printf("%lf\n%lf\n%l... | #include <math.h>
#include <stdio.h>
#define PI 3.141592653589793
int main(void) {
int a, b;
double C, c, S, L, h;
scanf("%d%d%lf", &a, &b, &C);
C = C * PI / 180.0;
S = (double)a * (double)b * sin(C) / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(C));
L = a + b + c;
h = b * sin(C);
printf("%lf\n%lf\n%l... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 135,597 | 135,598 | u336285540 | cpp |
p02380 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, C;
double pi = acos(-1);
cin >> a >> b >> C;
double S = 0.5 * a * b * sin(C * pi / 180);
double c = sqrt((a * a + b * b) - 2 * a * b * cos(C * pi / 180));
double L = a + b + c;
double h = (2 / a) * S;
... | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, C;
double pi = acos(-1);
cin >> a >> b >> C;
double S = 0.5 * a * b * sin(C * pi / 180);
double c = sqrt((a * a + b * b) - 2 * a * b * cos(C * pi / 180));
double L = a + b + c;
double h = 2 * S / a;
co... | [
"assignment.change"
] | 135,599 | 135,600 | u927873196 | cpp |
p02380 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a, b, C;
double S, L, h;
cin >> a >> b >> C;
double D = acos(-1.0) * C / 180.0;
S = a * b * sin(D) / 2.0;
L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(D));
h = b * sin(D);
printf("%lf\nf%lf\n%lf\n", S,... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a, b, C;
double S, L, h;
cin >> a >> b >> C;
double D = acos(-1.0) * C / 180.0;
S = a * b * sin(D) / 2.0;
L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(D));
h = b * sin(D);
printf("%lf\n%lf\n%lf\n", S, ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 135,601 | 135,602 | u888871392 | cpp |
p02380 | #define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
int main() {
double a, b, C; // ??\???
double S, L, h, x, c; // ??????
// ??\???
cin >> a >> b >> C;
C = (C * M_PI) / 180;
h = b * sin(C);
S = a... | #define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
int main() {
double a, b, C; // ??\???
double S, L, h, x, c; // ??????
// ??\???
cin >> a >> b >> C;
C = (C * M_PI) / 180;
h = b * sin(C);
S = a... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,603 | 135,604 | u597207241 | cpp |
p02380 | #include <math.h>
#include <stdio.h>
int main(void) {
int a, b, c;
double s = 0, l = 0, h = 0, ra, pi = 3.141592653589;
scanf("%d%d%d", &a, &b, &c);
ra = c * pi / 180;
s = 0.5 * a * b * sin(ra);
l = sqrt(a * a + b * b + 2 * a * b * cos(ra)) + a + b;
h = s * 2 / a;
printf("%8lf\n%8lf\n%8lf\n", s, l, h);... | #include <math.h>
#include <stdio.h>
int main(void) {
int a, b, c;
double s = 0, l = 0, h = 0, ra, pi = 3.141592653589;
scanf("%d%d%d", &a, &b, &c);
ra = c * pi / 180;
s = 0.5 * a * b * sin(ra);
l = sqrt(a * a + b * b - 2 * a * b * cos(ra)) + a + b;
h = s * 2 / a;
printf("%8lf\n%8lf\n%8lf\n", s, l, h);... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 135,614 | 135,615 | u726704931 | cpp |
p02380 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c;
cin >> a >> b >> c;
double rad = M_PI / 180.0 * 90;
double h = b * sin(rad);
double S = 0.5 * a * h;
double L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(rad));
cout << fixed << setprecision(8) << S << endl;
cout << fixed <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c;
cin >> a >> b >> c;
double rad = M_PI / 180.0 * c;
double h = b * sin(rad);
double S = 0.5 * a * h;
double L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(rad));
cout << fixed << setprecision(8) << S << endl;
cout << fixed << ... | [
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 135,621 | 135,622 | u411559868 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.