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 |
|---|---|---|---|---|---|---|---|
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
double pi = 3.141592653589;
int main() {
int r;
cin >> r;
printf("%.6f %.6f\n", r * 2 * pi, r * r * pi);
return (0);
} | #include <cstdio>
#include <iostream>
using namespace std;
double pi = 3.141592653589;
int main() {
double r;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, r * 2 * pi);
return (0);
} | [
"variable_declaration.type.primitive.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.replace.remove",
"literal.replace.add"
] | 227,764 | 227,761 | u318910474 | cpp |
p02479 | #include <iostream>
using namespace std;
#define PI 3.141592653589
int main() {
double d;
cin >> d;
cout << d * d * PI << " " << 2.0 * d * PI << endl;
return 0;
} | #include <iostream>
using namespace std;
#define PI 3.1415926535897932
int main() {
double d;
cin >> d;
cout << fixed << d * d * PI << " " << 2.0 * d * PI << endl;
return 0;
} | [
"preprocessor.define.value.change",
"literal.float.change",
"io.output.change"
] | 227,772 | 227,773 | u903504697 | cpp |
p02479 | #include <stdio.h>
int main() {
double r, n = 3.1415926;
scanf("%lf", &r);
printf("%f %f\n", r * r * n, r * 2 * n);
return (0);
} | #include <stdio.h>
int main() {
double r, n = 3.14159265358979;
scanf("%lf", &r);
printf("%f %f\n", r * r * n, r * 2 * n);
return (0);
} | [
"literal.number.change",
"variable_declaration.value.change"
] | 227,776 | 227,775 | u196597155 | cpp |
p02479 | #include <stdio.h>
int main() {
int r;
scanf("%d", &r);
double p;
p = 1.0 * 3.14159265;
printf("%f %f\n", r * r * p, 2 * r * p);
} | #include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
double p;
p = 1.0 * 3.141592653589;
printf("%f %f\n", r * r * p, 2 * r * p);
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 227,781 | 227,782 | u354244251 | cpp |
p02479 | #include <cmath>
#include <cstdio>
#define PI 3.141592653589793
int r;
int main() {
scanf("%d", &r);
printf("%f %f\n", PI * r * r, 2 * PI * r);
return 0;
} | #include <cmath>
#include <cstdio>
#define PI 3.141592653589793
double r;
int main() {
scanf("%lf", &r);
printf("%f %f\n", PI * r * r, 2.0 * PI * r);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"literal.number.change",
"expression.operation.binary.change",
"io.output.change"
] | 227,785 | 227,786 | u948959163 | cpp |
p02479 | #include <cmath>
#include <cstdio>
#define PI 3.141592653589793
int r;
int main() {
scanf("%d", &r);
printf("%f %f\n", PI * r * r, 2.0 * PI * r);
return 0;
} | #include <cmath>
#include <cstdio>
#define PI 3.141592653589793
double r;
int main() {
scanf("%lf", &r);
printf("%f %f\n", PI * r * r, 2.0 * PI * r);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 227,787 | 227,786 | u948959163 | cpp |
p02479 | #include <iomanip>
#include <iostream>
int main() {
double r;
std::cin >> r;
std::cout << std::fixed << std::setprecision(6) << (r * r * 355.0 / 113.0)
<< " " << (2 * r * 355.0 / 113.0) << std::endl;
// std::cout << (r * r * 1146408.0 /364913.0) << " " << (2 * r * 1146408.0
// /364913.0) <<... | #include <iomanip>
#include <iostream>
int main() {
double r;
std::cin >> r;
std::cout << std::fixed << std::setprecision(6)
<< (r * r * 1285290289249.0 / 409120605684.0) << " "
<< (2 * r * 1285290289249.0 / 409120605684.0) << std::endl;
return 0;
} | [
"literal.number.change",
"expression.operation.binary.change"
] | 227,790 | 227,791 | u317428753 | cpp |
p02479 | #include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
int main() {
cout << shosu(9);
double pi = acos(-1);
int r;
cin >> r;
cout << pi * r * r << ' ' << 2 * r * pi << endl;
} | #include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
int main() {
cout << shosu(9);
double pi = acos(-1);
double r;
cin >> r;
cout << pi * r * r << ' ' << 2 * r * pi << endl;
} | [
"variable_declaration.type.primitive.change"
] | 227,795 | 227,796 | u496100636 | cpp |
p02479 | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int r;
cin >> r;
cout << fixed << setprecision(6);
cout << r * r * M_PI << " " << 2 * r * M_PI << endl;
} | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6);
cout << r * r * M_PI << " " << 2 * r * M_PI << endl;
} | [
"variable_declaration.type.primitive.change"
] | 227,797 | 227,798 | u829805452 | cpp |
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.6f %.6f\n", r * r * 355 / 113, 2 * r * 355 / 113);
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.6f %.6f\n", r * r * 104348 / 33215, 2 * r * 104348 / 33215);
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 227,800 | 227,801 | u458173932 | cpp |
p02479 | #include <stdio.h>
double r, i = 3.141592653589;
int main() {
scanf("&r");
printf("%f %f\n", i * r * r, 2 * r * i);
return 0;
} | #include <stdio.h>
double r, i = 3.141592653589;
int main() {
scanf("%lf", &r);
printf("%lf %f\n", i * r * r, 2 * r * i);
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"call.arguments.add",
"io.output.change"
] | 227,802 | 227,803 | u398132923 | cpp |
p02479 | #include <stdio.h>
double r, i = 3.141592653589;
int main() {
scanf("%f", &r);
printf("%f %f\n", i * r * r, 2 * r * i);
return 0;
} | #include <stdio.h>
double r, i = 3.141592653589;
int main() {
scanf("%lf", &r);
printf("%lf %f\n", i * r * r, 2 * r * i);
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,804 | 227,803 | u398132923 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, are, circ;
cin >> r;
are = r * r * 3.141592653589;
circ = 2 * r * 3.141592653589;
cout << setprecision(8);
cout << are << " " << circ << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, are, circ;
cin >> r;
are = r * r * 3.141592653589;
circ = 2 * r * 3.141592653589;
cout << setprecision(10);
cout << are << " " << circ << endl;
return 0;
} | [
"literal.number.change",
"io.output.change"
] | 227,810 | 227,811 | u045580874 | cpp |
p02479 | #include <stdio.h>
#define M_PI 3.14159265358979323846
int main(void) {
double num;
scanf("%f", &num);
printf("%f %f\n", num * num * M_PI, num * 2 * M_PI);
} | #include <stdio.h>
#define M_PI 3.14159265358979323846
int main(void) {
double num;
scanf("%lf", &num);
printf("%f %f\n", num * num * M_PI, num * 2 * M_PI);
} | [
"literal.string.change",
"call.arguments.change"
] | 227,812 | 227,813 | u158037864 | cpp |
p02479 | #include <stdio.h>
#define M_PI 3.14159265358979323846
int main(void) {
double num;
scanf("%f", &num);
printf("%06f %06f\n", num * num * M_PI, num * 2 * M_PI);
} | #include <stdio.h>
#define M_PI 3.14159265358979323846
int main(void) {
double num;
scanf("%lf", &num);
printf("%f %f\n", num * num * M_PI, num * 2 * M_PI);
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,814 | 227,813 | u158037864 | cpp |
p02479 | #include <stdio.h>
#define M_PI 3.141592
int main(void) {
double num;
scanf("%lf", &num);
printf("%f %f\n", num * num * M_PI, num * 2 * M_PI);
} | #include <stdio.h>
#define M_PI 3.14159265358979323846
int main(void) {
double num;
scanf("%lf", &num);
printf("%f %f\n", num * num * M_PI, num * 2 * M_PI);
} | [
"preprocessor.define.value.change",
"literal.float.change"
] | 227,815 | 227,813 | u158037864 | cpp |
p02479 | #include <stdio.h>
int main() {
float a, b = 3.1415926;
scanf("%lf", &a);
printf("%f %f\n", a * a * b, a * 2 * b);
} | #include <stdio.h>
int main() {
double a, b = 3.1415926535;
scanf("%lf", &a);
printf("%f %f\n", a * a * b, a * 2 * b);
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.value.change"
] | 227,816 | 227,817 | u676399799 | cpp |
p02479 | #include <stdio.h>
int main() {
float a, b = 3.1415926;
scanf("%f", &a);
printf("%f %f\n", a * a * b, a * 2 * b);
} | #include <stdio.h>
int main() {
double a, b = 3.1415926535;
scanf("%lf", &a);
printf("%f %f\n", a * a * b, a * 2 * b);
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"call.arguments.change"
] | 227,818 | 227,817 | u676399799 | cpp |
p02479 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int r;
cin >> r;
printf("%.8f %.8f\n", r * r * acos(-1), 2 * acos(-1) * r);
} | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.8f %.8f\n", r * r * acos(-1), 2 * acos(-1) * r);
} | [
"variable_declaration.type.primitive.change"
] | 227,823 | 227,824 | u439230786 | cpp |
p02479 | #include <cstdio>
int main() {
const double pi = 3.141592653589;
int r;
scanf("%d", &r);
printf("%f %f\n", r * r * pi, r * 2 * pi);
} | #include <cstdio>
int main() {
const double pi = 3.141592653589;
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * pi, r * 2 * pi);
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 227,826 | 227,827 | u890256830 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
cout << scientific << setprecision(6) << a * a * 3.141592 << ' '
<< 2 * a * 3.141592 << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
cout << fixed << setprecision(6) << a * a * 3.141592653589 << ' '
<< 2 * a * 3.141592653589 << endl;
return 0;
} | [
"identifier.change",
"io.output.change",
"literal.number.change"
] | 227,828 | 227,829 | u646183247 | cpp |
p02479 | #include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
cout << a * a * 3.141592 << ' ' << 2 * a * 3.141592 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
cout << fixed << a * a * 3.141592653589 << ' ' << 2 * a * 3.141592653589
<< endl;
return 0;
} | [
"io.output.change",
"literal.number.change"
] | 227,830 | 227,831 | u646183247 | cpp |
p02479 | #include <iostream>
#include <math.h>
using namespace std;
int main(void) {
double r;
cin >> r;
cout.precision(6);
cout << r * r * 3.14159265358979323846L << " "
<< r * 2.0 * 3.14159265358979323846L << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main(void) {
double r;
cin >> r;
cout.precision(15);
cout << r * r * 3.14159265358979323846L << " "
<< r * 2.0 * 3.14159265358979323846L << endl;
return 0;
} | [
"literal.number.change",
"io.output.change"
] | 227,834 | 227,835 | u834504443 | cpp |
p02479 | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%f %f\n", M_PI * r * r, 2 * M_PI * r);
return 0;
} | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%lf %lf\n", M_PI * r * r, 2.0 * M_PI * r);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"literal.number.change",
"expression.operation.binary.change"
] | 227,836 | 227,837 | u828891518 | cpp |
p02479 | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
float r;
scanf("%f", &r);
printf("%f %f\n", M_PI * r * r, 2 * M_PI * r);
return 0;
} | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%lf %lf\n", M_PI * r * r, 2.0 * M_PI * r);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"literal.number.change",
"expression.operation.binary.change"
] | 227,838 | 227,837 | u828891518 | cpp |
p02479 |
#include <stdio.h>
int main(void) {
float r;
float are, circ, pai;
scanf("%f", &r);
pai = 3.141592653589;
are = r * r * pai;
circ = r * 2 * pai;
printf("%f %f\n", are, circ);
return 0;
} | #include <stdio.h>
int main(void) {
double r, are, circ, pai;
scanf("%lf", &r);
pai = 3.141592653589;
are = r * r * pai;
circ = r * 2 * pai;
printf("%f %f\n", are, circ);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 227,841 | 227,842 | u796927983 | cpp |
p02479 |
#include <stdio.h>
int main(void) {
float r;
float are, circ, pai;
scanf("%lf", &r);
pai = 3.141592653589;
are = r * r * pai;
circ = r * 2 * pai;
printf("%f %f\n", are, circ);
return 0;
} | #include <stdio.h>
int main(void) {
double r, are, circ, pai;
scanf("%lf", &r);
pai = 3.141592653589;
are = r * r * pai;
circ = r * 2 * pai;
printf("%f %f\n", are, circ);
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 227,843 | 227,842 | u796927983 | cpp |
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int r;
double x, y, pi;
pi = 3.141592653589;
scanf("%d", &r);
x = r * r * pi;
y = (r + r) * pi;
printf("%f %f\n", x, y);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double x, y, pi;
pi = 3.141592653589;
scanf("%lf", &r);
x = r * r * pi;
y = (r + r) * pi;
printf("%f %f\n", x, y);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 227,844 | 227,845 | u897388739 | cpp |
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double x, y, pi;
pi = 3.141592653589;
scanf("%f", &r);
x = r * r * pi;
y = (r + r) * pi;
printf("%f %f\n", x, y);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double x, y, pi;
pi = 3.141592653589;
scanf("%lf", &r);
x = r * r * pi;
y = (r + r) * pi;
printf("%f %f\n", x, y);
return 0;
} | [
"literal.string.change",
"call.arguments.change"
] | 227,846 | 227,845 | u897388739 | cpp |
p02479 | #include <stdio.h>
int main(void) {
float r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592653589, 2 * r * 3.141592653589);
return (0);
} | #include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592653589, 2 * r * 3.141592653589);
return (0);
} | [
"variable_declaration.type.primitive.change"
] | 227,847 | 227,848 | u851799777 | cpp |
p02479 | #include <stdio.h>
int main() {
int r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%d", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%d %d", answer_1, answer_2);
return 0;
} | #include <stdio.h>
int main() {
double r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%lf", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%f %f\n", answer_1, answer_2);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 227,854 | 227,855 | u600469399 | cpp |
p02479 | #include <stdio.h>
int main() {
int r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%d", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%d %d\n", answer_1, answer_2);
return 0;
} | #include <stdio.h>
int main() {
double r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%lf", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%f %f\n", answer_1, answer_2);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,856 | 227,855 | u600469399 | cpp |
p02479 | #include <stdio.h>
int main() {
int r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%d", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%f %f\n", answer_1, answer_2);
return 0;
} | #include <stdio.h>
int main() {
double r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%lf", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%f %f\n", answer_1, answer_2);
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 227,857 | 227,855 | u600469399 | cpp |
p02479 | #include <stdio.h>
int main() {
double r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%f", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%f %f\n", answer_1, answer_2);
return 0;
} | #include <stdio.h>
int main() {
double r;
double answer_1;
double answer_2;
double pai = 3.141592653589;
scanf("%lf", &r);
answer_1 = r * r * pai;
answer_2 = (r + r) * pai;
printf("%f %f\n", answer_1, answer_2);
return 0;
} | [
"literal.string.change",
"call.arguments.change"
] | 227,858 | 227,855 | u600469399 | cpp |
p02479 | #include <stdio.h>
static const double PI = 3.1415926;
double Area(const double radius) { return radius * radius * PI; }
double Circumference(const double radius) { return (radius * 2) * PI; }
int main(void) {
double radius;
scanf("%lf", &radius);
printf("%f %f\n", Area(radius), Circumference(radius));
re... | #include <stdio.h>
static const double PI = 3.14159265358979;
double Area(const double radius) { return radius * radius * PI; }
double Circumference(const double radius) { return (radius * 2) * PI; }
int main(void) {
double radius;
scanf("%lf", &radius);
printf("%f %f\n", Area(radius), Circumference(radius))... | [
"literal.number.change",
"variable_declaration.value.change"
] | 227,867 | 227,868 | u130767484 | cpp |
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
printf("%f %f\n", n * 3.14159265358979323 * 2, n * n * 3.14159265358979323);
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
printf("%f %f\n", n * 3.14159265358979323 * n, 2 * n * 3.14159265358979323);
} | [
"variable_declaration.type.primitive.change",
"call.arguments.change",
"call.arguments.add"
] | 227,869 | 227,870 | u464972055 | cpp |
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
printf("%f %f\n", n * 3.14159265358979323 * 2, n * n * 3.14159265358979323);
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
printf("%f %f\n", n * 3.14159265358979323 * n, 2 * n * 3.14159265358979323);
} | [
"call.arguments.change",
"call.arguments.add"
] | 227,871 | 227,870 | u464972055 | cpp |
p02479 | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10009
// Tuvshee
#include <iomanip>
#include <iostream>
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cctype>
#include <cmath>
#include <math.h>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define I int
#define D doubl... | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10009
// Tuvshee
#include <iomanip>
#include <iostream>
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cctype>
#include <cmath>
#include <math.h>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define I int
#define D doubl... | [
"variable_declaration.type.change"
] | 227,872 | 227,873 | u718685091 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
int r;
cin >> r;
double pai = 3.14159265358979;
double s = r * r * pai;
double l = 2 * pai * r;
cout << fixed << std::setprecision(6) << s << " " << l << std::endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
double pai = 3.14159265358979;
double s = r * r * pai;
double l = 2 * pai * r;
cout << fixed << std::setprecision(6) << s << " " << l << std::endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 227,874 | 227,875 | u084809388 | cpp |
p02479 | /*
半径 r の円の面積と円周の長さを求めるプログラムを作成して下さい。
*/
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char const *argv[]) {
double r;
cin >> r;
cout << fixed;
cout << setprecision(6) << r * r * M_PI << " ";
cout << setprecision(6) << r * M_PI << endl;
return 0;
} | /*
半径 r の円の面積と円周の長さを求めるプログラムを作成して下さい。
*/
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char const *argv[]) {
double r;
cin >> r;
cout << fixed;
cout << setprecision(6) << r * r * M_PI << " ";
cout << setprecision(6) << 2 * r * M_PI << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 227,876 | 227,877 | u514854653 | cpp |
p02479 | #include <cstdio>
using namespace std;
int main() {
const double pi = 3.141592;
double r;
scanf("%lf", &r);
printf("%.6lf %.6lf\n", pi * r * r, pi * r * 2);
return 0;
} | #include <cstdio>
using namespace std;
int main() {
const double pi = 3.141592653589;
double r;
scanf("%lf", &r);
printf("%.8lf %.8lf\n", pi * r * r, pi * r * 2);
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,878 | 227,879 | u621917792 | cpp |
p02479 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
int r;
cin >> r;
cout.setf(ios::fixed);
cout.precision(8);
cout << M_PI * r * r << ' ' << M_PI * 2 * r << endl;
... | #include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout.setf(ios::fixed);
cout.precision(8);
cout << M_PI * r * r << ' ' << M_... | [
"import.add",
"variable_declaration.type.primitive.change"
] | 227,882 | 227,883 | u934534598 | cpp |
p02479 | #include <stdio.h>
int main() {
double r = 0;
scanf("%lf", &r);
printf("%0.6f %0.6f\n", r * r * 3.141592, r * 2 * 3.141592);
return 0;
} | #include <stdio.h>
int main() {
double r = 0;
scanf("%lf", &r);
printf("%0.6f %0.6f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
return 0;
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 227,886 | 227,887 | u463431521 | cpp |
p02479 | #include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
double PI = 3.14159265358979323846;
int r;
cin >> r;
cout.setf(ios::fixed, ios::floatfield);
cout << r * r * PI << " " << r * 2 * PI << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
double PI = 3.14159265358979323846;
double r;
cin >> r;
cout.setf(ios::fixed, ios::floatfield);
cout << r * r * PI << " " << r * 2 * PI << endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 227,890 | 227,891 | u813384600 | cpp |
p02479 | #include <iomanip>
#include <iostream>
int main(void) {
const double PI = 3.1415926;
int r;
std::cin >> r;
std::cout << std::fixed << std::setprecision(5);
std::cout << PI * r * r << " " << 2 * PI * r << std::endl;
return 0;
} | #include <iomanip>
#include <iostream>
int main(void) {
const double PI = 3.141592653589793;
double r;
std::cin >> r;
std::cout << std::fixed << std::setprecision(5);
std::cout << PI * r * r << " " << 2 * PI * r << std::endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"variable_declaration.type.primitive.change"
] | 227,892 | 227,893 | u403446452 | cpp |
p02479 | #include <iomanip>
#include <iostream>
int main(void) {
const double PI = 3.1415926;
double r;
std::cin >> r;
std::cout << std::fixed << std::setprecision(5);
std::cout << PI * r * r << " " << 2 * PI * r << std::endl;
return 0;
} | #include <iomanip>
#include <iostream>
int main(void) {
const double PI = 3.141592653589793;
double r;
std::cin >> r;
std::cout << std::fixed << std::setprecision(5);
std::cout << PI * r * r << " " << 2 * PI * r << std::endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change"
] | 227,894 | 227,893 | u403446452 | cpp |
p02479 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
cin >> x;
printf("%lf% lf\n", x * x * M_PI, x * 2 * M_PI);
return 0;
} | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
double x;
cin >> x;
printf("%lf% lf\n", x * x * M_PI, x * 2 * M_PI);
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 227,895 | 227,896 | u621997536 | cpp |
p02479 | #include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
cout.setf(ios::fixed, ios::floatfield);
cout << r * pi * pi << 2 * pi * r << endl;
return (0);
} | #include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
cout.setf(ios::fixed, ios::floatfield);
cout << r * r * pi << " " << 2 * pi * r << endl;
return (0);
} | [
"identifier.change",
"io.output.change"
] | 227,899 | 227,900 | u552422656 | cpp |
p02479 | #include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.141592;
cin >> r;
cout.setf(ios::fixed, ios::floatfield);
cout << r * r * pi << " " << 2 * pi * r << endl;
return (0);
} | #include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
cout.setf(ios::fixed, ios::floatfield);
cout << r * r * pi << " " << 2 * pi * r << endl;
return (0);
} | [
"literal.number.change",
"variable_declaration.value.change"
] | 227,901 | 227,900 | u552422656 | cpp |
p02479 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r, p = atan(1) * 4;
double d, s;
cin >> r;
d = 2 * r * p;
s = r * r * p;
printf("%.6f %.6f", d, s);
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r, p = atan(1) * 4;
double d, s;
cin >> r;
d = 2 * r * p;
s = r * r * p;
printf("%.6f %.6f", s, d);
} | [
"call.arguments.change",
"call.arguments.add"
] | 227,902 | 227,903 | u988010981 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << setiosflags(ios::fixed);
cout << r * r * 3.141598653589 << " " << 2 * r * 3.141598653589 << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << setiosflags(ios::fixed);
cout << r * r * 3.141592653589 << " " << 2 * r * 3.141592653589 << endl;
return 0;
} | [
"literal.number.change",
"io.output.change"
] | 227,904 | 227,905 | u318077239 | cpp |
p02479 | #include <stdio.h>
int main() {
const int pi = 3.141592653589;
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * pi, 2 * r * pi);
return 0;
} | #include <stdio.h>
int main() {
const double pi = 3.141592653589;
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * pi, 2 * r * pi);
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 227,913 | 227,914 | u201529067 | cpp |
p02479 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int r;
float pi = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
} | [
"variable_declaration.type.primitive.change"
] | 227,915 | 227,916 | u333076897 | cpp |
p02479 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
float r;
float pi = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
} | [
"variable_declaration.type.primitive.change"
] | 227,917 | 227,916 | u333076897 | cpp |
p02479 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
float pi = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
} | [
"variable_declaration.type.primitive.change"
] | 227,918 | 227,916 | u333076897 | cpp |
p02479 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int r;
double a, b;
cin >> r;
a = r * r * 3.14159265;
b = 2 * r * 3.14159265;
printf("%.6f %.6f\n", a, b);
} | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double a, b;
cin >> r;
a = r * r * 3.141592653589;
b = 2 * r * 3.141592653589;
printf("%.6f %.6f\n", a, b);
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 227,921 | 227,922 | u672233061 | cpp |
p02479 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int r;
double a, b;
cin >> r;
a = r * r * 3.141592653589;
b = 2 * r * 3.141592653589;
printf("%.6f %.6f\n", a, b);
} | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double a, b;
cin >> r;
a = r * r * 3.141592653589;
b = 2 * r * 3.141592653589;
printf("%.6f %.6f\n", a, b);
} | [
"variable_declaration.type.primitive.change"
] | 227,923 | 227,922 | u672233061 | cpp |
p02479 | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double r, func, hoge;
cin >> r;
func = r * 2 * M_PI;
hoge = r * r * M_PI;
cout << fixed << func << " " << hoge << endl;
return 0;
} | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double r, func, hoge;
cin >> r;
func = r * 2 * M_PI;
hoge = r * r * M_PI;
cout << fixed << hoge << " " << func << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 227,924 | 227,925 | u662227160 | cpp |
p02479 | #include <math.h>
#include <stdio.h>
int main(void) {
double r;
scanf("%d", &r);
printf("%f %f\n", r * r * M_PI, 2 * r * M_PI);
return 0;
} | #include <stdio.h>
#include <math.h>
int main()
{
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * M_PI, 2 * r * M_PI);
return 0;
} | [
"import.add",
"literal.string.change",
"call.arguments.change"
] | 227,926 | 227,927 | u558584190 | cpp |
p02479 | #include <math.h>
#include <stdio.h>
int main(void) {
double r;
scanf("%1f", &r);
printf("%f %f\n", r * r * M_PI, 2 * r * M_PI);
return 0;
} | #include <stdio.h>
#include <math.h>
int main()
{
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * M_PI, 2 * r * M_PI);
return 0;
} | [
"import.add",
"literal.string.change",
"call.arguments.change"
] | 227,928 | 227,927 | u558584190 | cpp |
p02479 | #include "iostream"
using namespace std;
#define PI 3.14159265358;
int main() {
double r, x, y;
cin >> r;
x = 2 * r * PI;
y = r * r * PI;
cout << fixed << x << " " << fixed << y << endl;
} | #include "iostream"
using namespace std;
#define PI 3.14159265358979
int main() {
double r, x, y;
cin >> r;
x = 2 * r * PI;
y = r * r * PI;
cout << fixed << y << " " << fixed << x << endl;
} | [
"preprocessor.define.value.change",
"literal.float.change",
"identifier.change",
"io.output.change"
] | 227,930 | 227,931 | u603775589 | cpp |
p02479 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double menseki, ensyu;
cin >> r;
menseki = r * r * 3.141592;
ensyu = 2 * r * 3.141592;
printf("%9.6lf %9.6lf\n", menseki, ensyu);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double menseki, ensyu;
cin >> r;
menseki = r * r * 3.141592653589;
ensyu = 2 * r * 3.141592653589;
printf("%10.6lf %10.6lf\n", menseki, ensyu);
return 0;
} | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,934 | 227,933 | u577446888 | cpp |
p02479 | #include <math.h>
#include <stdio.h>
int main() {
float r;
scanf("%f", &r);
printf("%0.6f %0.6f\n", r * r * M_PI, 2.0 * r * M_PI);
} | #include <math.h>
#include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
printf("%0.6lf %0.6lf\n", r * r * M_PI, 2.0 * r * M_PI);
} | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,937 | 227,938 | u171548894 | cpp |
p02479 | #include <cstdio>
#define PAI 3.14159265
int main() {
double x;
scanf("%lf", &x);
printf("%f %f\n", 2 * x * PAI, x * PAI * PAI);
return 0;
} | #include <cstdio>
#define PAI 3.14159265359
int main() {
double x;
scanf("%lf", &x);
printf("%f %f\n", x * x * PAI, 2 * x * PAI);
return 0;
} | [
"preprocessor.define.value.change",
"literal.float.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.replace.remove",
"literal.replace.add",
"identifier.change"
] | 227,939 | 227,940 | u107750881 | cpp |
p02479 | #include <cstdio>
#define PAI 3.14159265
int main() {
double x;
scanf("%lf", &x);
printf("%f %f\n", 2 * x * PAI, x * x * PAI);
return 0;
} | #include <cstdio>
#define PAI 3.14159265359
int main() {
double x;
scanf("%lf", &x);
printf("%f %f\n", x * x * PAI, 2 * x * PAI);
return 0;
} | [
"preprocessor.define.value.change",
"literal.float.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.replace.remove",
"literal.replace.add"
] | 227,941 | 227,940 | u107750881 | cpp |
p02479 | #include <cstdio>
#define PAI 3.14159265359
int main() {
double x;
scanf("%lf", &x);
printf("%f %f\n", 2 * x * PAI, x * x * PAI);
return 0;
} | #include <cstdio>
#define PAI 3.14159265359
int main() {
double x;
scanf("%lf", &x);
printf("%f %f\n", x * x * PAI, 2 * x * PAI);
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.replace.remove",
"literal.replace.add"
] | 227,942 | 227,940 | u107750881 | cpp |
p02479 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,943 | 227,944 | u298173966 | cpp |
p02479 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 227,946 | 227,944 | u298173966 | cpp |
p02479 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(... | [
"variable_declaration.type.primitive.change"
] | 227,948 | 227,944 | u298173966 | cpp |
p02479 | #include <iomanip>
#include <iostream>
#define M_PI 3.14159265358979
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
int r = 0;
cin >> r;
cout << fixed << setprecision(6) << M_PI * r * r << " " << 2 * M_PI * r
<< endl;
return 0;
} | #include <iomanip>
#include <iostream>
#define M_PI 3.141592653589
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
double r = 0.0f;
cin >> r;
cout << fixed << setprecision(6) << M_PI * r * r << " " << 2 * M_PI * r
<< endl;
return 0;
} | [
"preprocessor.define.value.change",
"literal.float.change",
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.value.change"
] | 227,951 | 227,952 | u989717497 | cpp |
p02479 | #include <iomanip>
#include <iostream>
#define M_PI 3.141592653589
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
int r = 0;
cin >> r;
cout << fixed << setprecision(6) << M_PI * r * r << " " << 2 * M_PI * r
<< endl;
return 0;
} | #include <iomanip>
#include <iostream>
#define M_PI 3.141592653589
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
double r = 0.0f;
cin >> r;
cout << fixed << setprecision(6) << M_PI * r * r << " " << 2 * M_PI * r
<< endl;
return 0;
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.value.change"
] | 227,953 | 227,952 | u989717497 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
long double a, x, y;
cin >> a;
x = a * a * 3.141592653589;
y = a * 2 * 3.141592653589;
cout << fixed << setprecision(6);
cout << x << "" << y << endl;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, x, y;
cin >> a;
x = a * a * 3.141592653589;
y = a * 2 * 3.141592653589;
cout << fixed << setprecision(6);
cout << x << " " << y << endl;
} | [
"variable_declaration.type.narrow.change",
"literal.string.change",
"io.output.change"
] | 227,954 | 227,955 | u343612457 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, x, y;
cin >> a;
x = a * a * 3.141592653589;
y = a * 2 * 3.141592653589;
cout << fixed << setprecision(6);
cout << x << "" << y << endl;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, x, y;
cin >> a;
x = a * a * 3.141592653589;
y = a * 2 * 3.141592653589;
cout << fixed << setprecision(6);
cout << x << " " << y << endl;
} | [
"literal.string.change",
"io.output.change"
] | 227,956 | 227,955 | u343612457 | cpp |
p02479 | #include <cstdio>
using namespace std;
int main() {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * 2 * 3.141592653589, r * r * 3.141592653589);
return 0;
} | #include <cstdio>
using namespace std;
int main() {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.replace.remove",
"literal.replace.add"
] | 227,957 | 227,958 | u376883550 | cpp |
p02479 | #include <iomanip>
#include <iostream>
#define PI 3.141592653589
using namespace std;
int main(void) {
double r;
cin >> r;
cout << fixed << setprecision(6) << 2 * r * PI << " " << PI * r * r << endl;
return 0;
} | #include <iomanip>
#include <iostream>
#define PI 3.141592653589
using namespace std;
int main(void) {
double r;
cin >> r;
cout << fixed << setprecision(6) << PI * r * r << " " << 2 * r * PI << endl;
return 0;
} | [
"expression.operation.binary.remove",
"io.output.change"
] | 227,959 | 227,960 | u231644926 | cpp |
p02479 | #include <iomanip>
#include <iostream>
using namespace std;
#define PAI 3.141592
int main() {
double r;
double menseki, ensyu;
cin >> r;
menseki = PAI * r * r;
ensyu = 2 * PAI * r;
cout << setprecision(6) << fixed << menseki << " " << ensyu << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
#define PAI 3.14159265359
int main() {
double r;
double menseki, ensyu;
cin >> r;
menseki = PAI * r * r;
ensyu = 2 * PAI * r;
cout << setprecision(6) << fixed << menseki << " " << ensyu << endl;
return 0;
} | [
"preprocessor.define.value.change",
"literal.float.change"
] | 227,961 | 227,962 | u174665230 | cpp |
p02479 | #include <algorithm>
#include <functional>
#include <iostream>
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
ty... | #include <algorithm>
#include <functional>
#include <iostream>
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
ty... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change"
] | 227,965 | 227,966 | u140201022 | cpp |
p02479 | //============================================================================
// Name : pra.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <cstdi... | //============================================================================
// Name : pra.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <cstdi... | [
"variable_declaration.type.primitive.change"
] | 227,967 | 227,968 | u113271011 | cpp |
p02479 | #include <stdio.h>
int main(void) {
double p = 3.1415926535898;
double r;
scanf("%lf", &r);
printf("%f %f\n", p * p * r, 2 * p * r);
return 0;
} | #include <stdio.h>
int main(void) {
double p = 3.1415926535898;
double r;
scanf("%lf", &r);
printf("%f %f\n", p * r * r, 2 * p * r);
return 0;
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 227,972 | 227,973 | u670226017 | cpp |
p02479 | #include <stdio.h>
int main(void) {
double p = 3.141592653589;
double r;
scanf("%lf", &r);
printf("%f %f\n", p * p * r, 2 * p * r);
return 0;
} | #include <stdio.h>
int main(void) {
double p = 3.1415926535898;
double r;
scanf("%lf", &r);
printf("%f %f\n", p * r * r, 2 * p * r);
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 227,976 | 227,973 | u670226017 | cpp |
p02468 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#define int long long
using namespace std;
signed main() {
int m, n, mod = 10000007;
cin >> m >> n;
int k = 1;
while (n) {
if (n % 2 == 1) {
k *= m;
n--;
}
m *= m;
n /= 2;
k %= mod;
m %= mod;
}
c... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#define int long long
using namespace std;
signed main() {
int m, n, mod = 1000000007;
cin >> m >> n;
int k = 1;
while (n) {
if (n % 2 == 1) {
k *= m;
n--;
}
m *= m;
n /= 2;
k %= mod;
m %= mod;
}
... | [
"literal.number.change",
"variable_declaration.value.change"
] | 230,862 | 230,863 | u988213374 | cpp |
p02468 | #include <cctype>
#include <cstdio>
#include <utility>
#include <vector>
using namespace std;
const auto gcu = getchar_unlocked;
const auto pcu = putchar_unlocked;
#define _T template <typename T>
#define _HT template <typename H, typename... T>
#define _il inline
#define _sc _il bool scan
_T T in(int c) {
T n = 0;
... | #include <cctype>
#include <cstdio>
#include <utility>
#include <vector>
using namespace std;
const auto gcu = getchar_unlocked;
const auto pcu = putchar_unlocked;
#define _T template <typename T>
#define _HT template <typename H, typename... T>
#define _il inline
#define _sc _il bool scan
_T T in(int c) {
T n = 0;
... | [
"control_flow.loop.for.initializer.change",
"variable_declaration.type.primitive.change"
] | 230,866 | 230,867 | u621234548 | cpp |
p02468 | #include <fstream>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef int Int;
const Int M = 1000000007;
Int power(Int x, Int n) {
Int res;
if (n == 0)
return 1;
res = power((x * x) % M, n / 2);
if ((n & 1) != 0) {
res = res * x % M;
}
return ... | #include <fstream>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef long Int;
const Int M = 1000000007;
Int power(Int x, Int n) {
Int res;
if (n == 0)
return 1;
res = power(x * x % M, n / 2);
if ((n & 1) != 0) {
res = res * x % M;
}
return r... | [
"variable_declaration.type.primitive.change",
"call.arguments.change"
] | 230,868 | 230,869 | u084809388 | cpp |
p02468 | #include <fstream>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef int Int;
const Int M = 1000000007;
Int power(Int x, Int n) {
Int res;
if (n == 0)
return 1;
res = power(x * x % M, n / 2);
if ((n & 1) != 0) {
res = res * x % M;
}
return re... | #include <fstream>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef long Int;
const Int M = 1000000007;
Int power(Int x, Int n) {
Int res;
if (n == 0)
return 1;
res = power(x * x % M, n / 2);
if ((n & 1) != 0) {
res = res * x % M;
}
return r... | [
"variable_declaration.type.primitive.change"
] | 230,870 | 230,869 | u084809388 | cpp |
p02468 | #include <stdio.h>
#include <string.h>
long long int d = 1000000007ll;
long long int pow(int m, long long int n) {
long long int res;
if (n == 0)
return 1;
res = pow((m * m) % d, n / 2);
if (n % 2) {
res = (res * m) % d;
}
return res;
}
int main(void) {
long long int n;
int m;
scanf("%d%lld... | #include <stdio.h>
#include <string.h>
long long int d = 1000000007ll;
long long int pow(long long int m, long long int n) {
long long int res;
if (n == 0)
return 1;
res = pow((m * m) % d, n / 2);
if (n % 2) {
res = (res * m) % d;
}
return res;
}
int main(void) {
long long int n;
int m;
sca... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 230,871 | 230,872 | u676009614 | cpp |
p02468 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
#define F first
#define S second
#define FOR(i, n) for (int i = 0;... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
#define F first
#define S second
#define FOR(i, n) for (int i = 0;... | [
"expression.operation.binary.add"
] | 230,879 | 230,880 | u195954908 | cpp |
p02468 | #include <iostream>
#define P 1000000007
using namespace std;
typedef long long ll;
int mod_power(ll, int);
int main() {
int m, n;
cin >> m >> n;
cout << mod_power((ll)m, n) << endl;
return 0;
}
int mod_power(ll x, int y) {
ll res = 1;
for (int i = 0; i <= 30; i++) {
if (y & (1 << i))
res = res ... | #include <iostream>
#define P 1000000007
using namespace std;
typedef long long ll;
int mod_power(ll, int);
int main() {
int m, n;
cin >> m >> n;
cout << mod_power((ll)m, n) << endl;
return 0;
}
int mod_power(ll x, int y) {
ll res = 1;
for (int i = 0; i <= 30; i++) {
if (y & (1 << i))
res = res ... | [
"assignment.value.change",
"assignment.change"
] | 230,889 | 230,890 | u084540620 | cpp |
p02468 | #include <iostream>
#define P 1000000007
using namespace std;
typedef long long ll;
int mod_power(ll, int);
int main() {
int m, n;
cin >> m >> n;
cout << mod_power((ll)m, n) << endl;
return 0;
}
int mod_power(ll x, int y) {
ll res = 1;
for (int i = 0; i <= 30; i++) {
if (y & (1 << i))
res = res ... | #include <iostream>
#define P 1000000007
using namespace std;
typedef long long ll;
int mod_power(ll, int);
int main() {
int m, n;
cin >> m >> n;
cout << mod_power((ll)m, n) << endl;
return 0;
}
int mod_power(ll x, int y) {
ll res = 1;
for (int i = 0; i <= 30; i++) {
if (y & (1 << i))
res = res ... | [
"assignment.variable.change",
"expression.operation.binary.change"
] | 230,889 | 230,891 | u084540620 | cpp |
p02468 | /**
* @brief 剰余演算のテストプログラム
* @date 2016/08/06
*/
// ********************************************************************************
// 必要なヘッダファイルのインクルード
// ********************************************************************************
#include <cstdint>
#include <iostream>
#include <type_traits>
// **********... | /**
* @brief 剰余演算のテストプログラム
* @date 2016/08/06
*/
// ********************************************************************************
// 必要なヘッダファイルのインクルード
// ********************************************************************************
#include <cstdint>
#include <iostream>
#include <type_traits>
// **********... | [
"call.add",
"call.remove"
] | 230,898 | 230,902 | u696273805 | cpp |
p02468 | /**
* @brief 剰余演算のテストプログラム
* @date 2016/08/06
*/
// ********************************************************************************
// 必要なヘッダファイルのインクルード
// ********************************************************************************
#include <cstdint>
#include <iostream>
#include <type_traits>
// **********... | /**
* @brief 剰余演算のテストプログラム
* @date 2016/08/06
*/
// ********************************************************************************
// 必要なヘッダファイルのインクルード
// ********************************************************************************
#include <cstdint>
#include <iostream>
#include <type_traits>
// **********... | [
"call.add",
"call.remove",
"variable_declaration.type.change"
] | 230,900 | 230,902 | u696273805 | cpp |
p02468 | /**
* @brief 剰余演算のテストプログラム
* @date 2016/08/06
*/
// ********************************************************************************
// 必要なヘッダファイルのインクルード
// ********************************************************************************
#include <cstdint>
#include <iostream>
#include <type_traits>
// **********... | /**
* @brief 剰余演算のテストプログラム
* @date 2016/08/06
*/
// ********************************************************************************
// 必要なヘッダファイルのインクルード
// ********************************************************************************
#include <cstdint>
#include <iostream>
#include <type_traits>
// **********... | [
"call.add",
"call.remove",
"variable_declaration.type.change"
] | 230,901 | 230,902 | u696273805 | cpp |
p02468 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
int pow_mod(int m, int n, int mod) {
int x = 1;
m = m % mod;
while (n > 0) {
if (n & 1) {
x = (x * m) % mod;
}
n >>= 1;
m = (m * m) % mod;
}
return x;
}
int main() ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
int pow_mod(ll m, int n, int mod) {
ll x = 1;
m = m % mod;
while (n > 0) {
if (n & 1) {
x = (x * m) % mod;
}
n >>= 1;
m = (m * m) % mod;
}
return x;
}
int main() {
... | [
"variable_declaration.type.change"
] | 230,903 | 230,904 | u126072490 | cpp |
p02468 | #include <iostream>
#define rep(i, a, n) for (int i = a; i < n; i++)
using namespace std;
const long long mod = 1000000009;
long long mod_pow(long long x, long long n) {
if (n == 0)
return 1;
long long res = mod_pow(x * x % mod, n / 2);
if (n & 1)
res = res * x % mod;
return res;
}
int main() {
lon... | #include <iostream>
#define rep(i, a, n) for (int i = a; i < n; i++)
using namespace std;
const long long mod = 1000000007;
long long mod_pow(long long x, long long n) {
if (n == 0)
return 1;
long long res = mod_pow(x * x % mod, n / 2);
if (n & 1)
res = res * x % mod;
return res;
}
int main() {
lon... | [
"literal.number.change",
"variable_declaration.value.change"
] | 230,923 | 230,922 | u188938853 | cpp |
p02468 | #include <iostream>
#define rep(i, a, n) for (int i = a; i < n; i++)
using namespace std;
const long long mod = 1000000009;
long long mod_pow(long long x, long long n) {
if (n == 0)
return 1;
long long res = mod_pow(x * x % mod, n / 2);
if (n & 1)
res = res * x % mod;
return res;
}
int main() {
lon... | #include <iostream>
#define rep(i, a, n) for (int i = a; i < n; i++)
using namespace std;
const long long mod = 1000000007;
long long mod_pow(long long x, long long n) {
if (n == 0)
return 1;
long long res = mod_pow(x * x % mod, n / 2);
if (n % 2)
res = res * x % mod;
return res;
}
int main() {
lon... | [
"literal.number.change",
"variable_declaration.value.change"
] | 230,923 | 230,924 | u188938853 | cpp |
p02468 | #include <stdio.h>
long long func(long long x, long long y) {
if (y == 0)
return 1;
else if (y % 2 == 0) {
return func(x * x, y / 2);
} else {
return x * func(x, y - 1);
}
}
int main() {
int m, n;
scanf("%d %d", &m, &n);
printf("%lld\n", func(m, n) % 1000000007);
} | #include <stdio.h>
long long func(long long x, long long y) {
if (y == 0)
return 1;
else if (y % 2 == 0) {
return func(x * x % 1000000007, y / 2);
} else {
return x * func(x, y - 1) % 1000000007;
}
}
int main() {
int m, n;
scanf("%d %d", &m, &n);
printf("%lld\n", func(m, n) % 1000000007);
... | [
"expression.operation.binary.add"
] | 230,931 | 230,932 | u697145890 | cpp |
p02468 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
using namespace std;
long long int Pow(long long int n, long long int m) {
if (m == 0)
return 1;
i... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
using namespace std;
long long int Pow(long long int n, long long int m) {
if (m == 0)
return 1;
i... | [
"identifier.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 230,933 | 230,934 | u350754611 | cpp |
p02468 | #include <iostream>
long pow(long x, long y) {
if (y == 0) {
return 1;
} else if (y == 1) {
return x;
} else if (y % 2 == 0) {
int z = pow(x, y / 2) % 1000000007;
return z * z % 1000000007;
} else {
int z = pow(x, y / 2) % 1000000007;
return (z * z % 1000000007) * x % 1000000007;
}
}... | #include <iostream>
long pow(long x, long y) {
if (y == 0) {
return 1;
} else if (y == 1) {
return x;
} else if (y % 2 == 0) {
long z = pow(x, y / 2) % 1000000007;
return z * z % 1000000007;
} else {
long z = pow(x, y / 2) % 1000000007;
return (z * z % 1000000007) * x % 1000000007;
}... | [
"variable_declaration.type.primitive.change"
] | 230,944 | 230,945 | u535246834 | cpp |
p02468 | #include <cmath>
#include <cstdint>
#include <cstdio>
using namespace std;
constexpr int limit = 1'000'000'007;
constexpr int exp_max = 29;
int main() {
int m, n;
scanf("%d %d", &m, &n);
int64_t res = m;
int64_t m_exp[exp_max];
m_exp[0] = m;
int count = 1;
int i;
double sup = log(n) / log(2);
for ... | #include <cmath>
#include <cstdint>
#include <cstdio>
using namespace std;
constexpr int limit = 1'000'000'007;
constexpr int exp_max = 29;
int main() {
int m, n;
scanf("%d %d", &m, &n);
int64_t res = m;
int64_t m_exp[exp_max];
m_exp[0] = m;
int count = 1;
int i;
double sup = log(n) / log(2);
for ... | [
"expression.operation.binary.remove"
] | 230,951 | 230,952 | u312838664 | cpp |
p02468 | #include <iostream>
using namespace std;
typedef long long int lli;
int mod = 1e9 + 7;
lli modPow(lli x, lli n) {
if (n == 0)
return 1LL;
lli res = modPow((x * x) % mod, n / 2);
if (n & 1)
res = (res * x) % mod;
return res;
}
int main() {
lli n, m;
std::cin >> n >> m;
std::cout << modPow(m, n) <... | #include <iostream>
using namespace std;
typedef long long int lli;
int mod = 1e9 + 7;
lli modPow(lli x, lli n) {
if (n == 0)
return 1LL;
lli res = modPow((x * x) % mod, n / 2);
if (n & 1)
res = (res * x) % mod;
return res;
}
int main() {
lli n, m;
std::cin >> m >> n;
std::cout << modPow(m, n) ... | [
"expression.operation.binary.remove"
] | 230,953 | 230,954 | u749493116 | cpp |
p02468 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#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 (in... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#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 (in... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 230,955 | 230,956 | u899395330 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.