buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_B&lang=jp
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << r * r * 3.1415926535897932387 << " " << 2 * r * 3.1415926535897932387
<< endl;
return 0;
}
| // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_B&lang=jp
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed;
cout << r * r * 3.1415926535897932387 << " " << 2 * r * 3.1415926535897932387
<< endl;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 43 |
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_B&lang=jp
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
std::cout << std::fixed;
cout << r * r * 3.141592 << " " << 2 * r * 3.141592653 << endl;
return 0;
}
| // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_B&lang=jp
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed; //精度保障のためこの記述が必要なようです。
cout << r * r * 3.1415926535897 << " " << 2 * r * 3.1415926535897 << endl;
return 0;
}
| [["-", 8, 9, 0, 1, 0, 16, 31, 343, 345, 348], ["-", 8, 9, 0, 1, 0, 16, 31, 343, 0, 349], ["-", 8, 9, 0, 1, 0, 16, 12, 343, 345, 348], ["-", 8, 9, 0, 1, 0, 16, 12, 343, 0, 349], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+",... | 1 | 51 |
#include <cstdio>
int main() {
double r, pi = 3.141592;
scanf("%lf", &r);
printf("%.5f %.5f\n", r * r * pi, 2 * r * pi);
return 0;
}
| #include <cstdio>
int main() {
double r, pi = 3.141592653589;
scanf("%lf", &r);
printf("%.6f %.6f\n", r * r * pi, 2 * r * pi);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 48 |
#include <iomanip>
#include <iostream>
#define pi 3.141592653
using namespace std;
int main() {
double r;
cin >> r;
cout << setiosflags(ios::fixed) << setprecision(6) << pi * r * r << " "
<< 2 * pi * r << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
#define pi 3.1415926535898
using namespace std;
int main() {
double r;
cin >> r;
cout << setiosflags(ios::fixed) << setprecision(6) << pi * r * r << " "
<< 2 * pi * r << endl;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 59 |
#include <cstdio>
#define loop_input(fmt, ...) while (~scanf(fmt, __VA_ARGS__))
#define PI 3.14159265
int main() {
double r;
loop_input("%lf", &r) { printf("%lf %lf\n", PI * r * r, 2 * PI * r); }
return 0;
}
| #include <cmath>
#include <cstdio>
#define loop_input(fmt, ...) while (~scanf(fmt, __VA_ARGS__))
#define PI 3.14159265359
int main() {
double r;
loop_input("%lf", &r) { printf("%lf %lf\n", PI * r * r, 2 * PI * r); }
return 0;
}
| [["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 57 |
#include <iostream>
using namespace std;
int main() {
double a;
scanf("%lf", &a);
printf("%lf %lf\n", 3.14159263 * a * a, 3.14159263 * (a * 2));
return 0;
} | #include <iostream>
using namespace std;
int main() {
double a;
scanf("%lf", &a);
printf("%lf %lf\n", 3.141592653589 * a * a, 3.141592653589 * (a * 2));
return 0;
} | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 31, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 31, 13]] | 1 | 50 |
#include <cmath>
#include <iostream>
using namespace std;
const double pi = 4 * atan(1);
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.setf(ios::fixed);
cout.precision(5);
double r;
cin >> r;
cout << 2 * r * pi << ' ' << 0.5 * r * r * pi << '\n';
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
const double pi = 4 * atan(1);
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.setf(ios::fixed);
cout.precision(5);
double r;
cin >> r;
cout << r * r * pi << ' ' << 2 * r * pi << '\n';
return 0;
}
| [["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 31, 13], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 17, 48], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13]] | 1 | 89 |
#include <iomanip>
#include <iostream>
#define pi 3.1415926
using namespace std;
int main() {
double r, l, s;
cin >> r;
l = 2 * pi * r;
s = pi * r * r;
cout << setprecision(9) << fixed << s << " " << l << endl;
return 0;
}
| #include <iomanip>
#include <iostream>
#define pi 3.14159265358979323846
using namespace std;
int main() {
double r, l, s;
cin >> r;
l = 2 * pi * r;
s = pi * r * r;
cout << setprecision(9) << fixed << s << " " << l << endl;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 66 |
#include <cstdlib>
#include <iostream>
const double pi = 3.1415926;
using namespace std;
int main() {
double area, r, circumference;
cin >> r;
area = pi * r * r;
circumference = 2 * pi * r;
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(6);
cout << area << " " << circumference << endl;... | #include <cstdlib>
#include <iostream>
const double pi = 3.141592653589793238;
using namespace std;
int main() {
double area, r, circumference;
cin >> r;
area = pi * r * r;
circumference = 2 * pi * r;
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(6);
cout << area << " " << circumferen... | [["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]] | 1 | 87 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.12lf %.12lf", r * r * 3.1415926535897932384626, 2 * r * 3.141592);
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.12lf %.12lf\n", r * r * 3.1415926535897932384626,
2 * r * 3.14159265358979);
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 38 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
float r, pi;
cin >> r;
pi = 3.141592653589;
printf("%.6f %.6f\n", (r * r * pi), (2 * r * pi));
return 0;
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, pi;
cin >> r;
pi = 3.141592653589;
printf("%.6f %.6f\n", (r * r * pi), (2 * r * pi));
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
const double Pi = acos(-1);
int main() {
cout << fixed << setprecision(10);
double r;
cin >> r;
cout << 2 * Pi * r << " " << Pi * r * r << endl;
}
| #include <bits/stdc++.h>
using namespace std;
const double Pi = acos(-1);
int main() {
cout << fixed << setprecision(10);
double r;
cin >> r;
cout << Pi * r * r << " " << Pi * r * 2 << endl;
}
| [["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 57 |
#define PI 3.14159265359
#include <stdio.h>
int main() {
int r;
scanf("%lf", &r);
printf("%d &d\n", r * r * PI, 2 * r * PI);
return 0;
}
| #define PI 3.14159265359
#include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
printf("%lf %lf\n", r * r * PI, 2 * r * PI);
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 47 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double r, S, L;
cin >> r;
S = r * r * M_PI;
L = 2 * r * M_PI;
cout << S << " " << L << endl;
return 0;
}
| #include <iostream>
#include <math.h>
using namespace std;
int main() {
double r, S, L;
cin >> r;
S = r * r * M_PI;
L = 2 * r * M_PI;
cout << fixed << S << " " << fixed << L << endl;
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]] | 1 | 56 |
#include <iomanip>
#include <iostream>
using namespace std;
double r;
int main() {
cin >> r;
cout << fixed << r * r * 3.141592653589 << 2 * 3.141592653589 * r << endl;
return 0;
}
|
#include <iomanip>
#include <iostream>
using namespace std;
double r;
int main() {
cin >> r;
cout << fixed << r * r * 3.141592653589 << " " << 2 * 3.141592653589 * r
<< endl;
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 42 |
#include <stdio.h>
int main() {
double a, b, r;
scanf("%lf", &r);
a = r * r * 3.14159265;
b = r * 2 * 3.14159265;
printf("%lf %lf\n", a, b);
return 0;
}
| #include <stdio.h>
int main() {
double a, b, r;
scanf("%lf", &r);
a = r * r * 3.141592653589793;
b = r * 2 * 3.141592653589793;
printf("%lf %lf\n", a, b);
return 0;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 56 |
#include <stdio.h>
#define pi 3.14159265358
int main() {
double men, shu;
double r;
scanf("%f", &r);
men = r * r * pi;
shu = 2 * r * pi;
printf("%f %f\n", men, shu);
return 0;
}
| #include <stdio.h>
#define pi 3.1415926535897932384626433832795
int main() {
double men, shu;
double r;
scanf("%lf", &r);
men = r * r * pi;
shu = 2 * r * pi;
printf("%lf %lf\n", men, shu);
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 60 |
#include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.14159265
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * PI;
cout << ' ';
cout << fixed << setprecision(6) << 2 * r * PI;
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.14159265358979323846
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * PI;
cout << ' ';
cout << fixed << setprecision(6) << 2 * r * PI;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 63 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main(void) {
int r;
double a;
double b;
cin >> r;
a = r * r * 3.14159265;
b = 2 * r * 3.14159265;
printf("%f %f\n", a, b);
}
| #include <iostream>
#include <stdio.h>
using namespace std;
int main(void) {
double r;
double a;
double b;
cin >> r;
a = r * r * 3.141592653589;
b = 2 * r * 3.141592653589;
printf("%f %f\n", a, b);
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 56 |
#include <cstdio>
#include <iostream>
#define pi 3.14159265358979323
using namespace std;
int main() {
double r;
cin >> r;
printf("%f %f\n", r * 2 * pi, r * r * pi);
return 0;
} | #include <cstdio>
#include <iostream>
#define pi 3.14159265358979323
using namespace std;
int main() {
double r;
cin >> r;
printf("%f %f\n", r * r * pi, r * 2 * pi);
return 0;
} | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 1 | 47 |
#include <stdio.h>
#define pi 3.141592653
int main(void) {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * pi, 2 * r * pi);
return 0;
} | #include <stdio.h>
#define pi 3.14159265359
int main(void) {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * pi, 2 * r * pi);
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 48 |
#include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
double pi = 3.141592653;
printf("%f %f\n", pi * r * r, 2 * pi * r);
return 0;
} | #include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
double pi = 3.14159265359;
printf("%f %f\n", pi * r * r, 2 * pi * r);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 49 |
#include <stdio.h>
int main() {
double r, p;
p = 3.141592653589;
scanf("%lf", &r);
printf("%.5f %.5f\n", (r * p * p), 2 * p * r);
return 0;
} | #include <stdio.h>
int main() {
double r, p;
p = 3.141592653589;
scanf("%lf", &r);
printf("%.5f %.5f\n", (r * r * p), 2 * p * r);
return 0;
} | [["-", 3, 4, 0, 23, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 23, 0, 16, 31, 16, 12, 22]] | 1 | 52 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
double resA, resB;
resA = 2.0 * a * M_PI;
resB = a * a * M_PI;
cout << fixed << resA << " " << fixed << resB << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
double resA, resB;
resA = a * a * M_PI;
resB = 2.0 * a * M_PI;
cout << fixed << resA << " " << fixed << resB << endl;
return 0;
} | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13]] | 1 | 61 |
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int r;
cin >> r;
cout.setf(ios::fixed);
cout.precision(10);
cout << M_PI * r * r << 2 * M_PI * r << endl;
return 0;
} | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout.setf(ios::fixed);
cout.precision(10);
cout << M_PI * r * r << ' ' << 2 * M_PI * r << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125]] | 1 | 58 |
#include <algorithm>
#include <bitset>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
#define FOR(I, F, N) for (int I = F; I < (int... | #include <algorithm>
#include <bitset>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
#define FOR(I, F, N) for (int I = F; I < (int... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 179 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double rad, are, len;
cin >> rad;
are = M_PI * rad * rad;
len = M_PI * 2 * rad;
printf("%lf, %lf\n", are, len);
return 0;
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double rad, are, len;
cin >> rad;
are = M_PI * rad * rad;
len = M_PI * 2 * rad;
printf("%lf %lf\n", are, len);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 58 |
#include <stdio.h>
int main(void) {
double r, pi;
pi = 3.141592;
scanf("%lf", &r);
printf("%lf %lf\n", r * r * pi, r * 2 * pi);
getchar();
return 0;
} | #include <stdio.h>
int main(void) {
double r, pi;
pi = 3.14159265358979323846;
scanf("%lf", &r);
printf("%.6lf %.6lf\n", r * r * pi, r * 2 * pi);
getchar();
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 55 |
#include <iostream>
#include <stdio.h>
#define pi 3.14159265
using namespace std;
int main() {
double r, S, l;
cin >> r;
S = r * r * pi;
l = 2 * r * pi;
printf("%.6lf %.6lf\n", S, l);
return 0;
} | #include <iostream>
#include <stdio.h>
#define pi 3.141592653589
using namespace std;
int main() {
double r, S, l;
cin >> r;
S = r * r * pi;
l = 2 * r * pi;
printf("%.6lf %.6lf\n", S, l);
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 59 |
#include "bits/stdc++.h"
using namespace std;
#define M_PI 3.14159265358979323846
int main() {
double r;
cin >> r;
cout << r * r * M_PI << " " << (r + r) * M_PI << endl;
return 0;
} | #include "bits/stdc++.h"
using namespace std;
#define M_PI 3.14159265358979323846
int main() {
double r;
cin >> r;
cout << fixed << r * r * M_PI << " " << (r + r) * M_PI << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 49 |
#include <cstdio>
int main() {
double r;
double p = 3.141592653589;
scanf("%lf", r);
double S = p * r * r;
double L = 2 * p * r;
printf("%f %f\n", S, L);
return 0;
} | #include <cstdio>
int main() {
double r;
double p = 3.141592653589;
scanf("%lf", &r);
double S = p * r * r;
double L = 2 * p * r;
printf("%f %f\n", S, L);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 58 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, p, m;
cin >> r;
p = r * r * 3.14159265;
m = r * 2 * 3.14159265;
printf("%f", p);
printf(" ");
printf("%f", m);
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, p, m;
cin >> r;
p = r * r * 3.141592653589;
m = r * 2 * 3.141592653589;
printf("%f", p);
printf(" ");
printf("%f", m);
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 66 |
#include <stdio.h>
int main(void) {
double r, l, s;
scanf("%lf", &r);
l = 2 * r * 3.141592653589;
s = 3.141592653589 * r * r;
printf("%f %f\n", l, s);
return 0;
} | #include <stdio.h>
int main(void) {
double r, l, s;
scanf("%lf", &r);
l = 2 * r * 3.141592653589;
s = 3.141592653589 * r * r;
printf("%f %f\n", s, l);
return 0;
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 57 |
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
printf("%lf %lf", M_PI * M_PI * a, 2.0 * a * M_PI);
return 0;
} | #define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
printf("%lf %lf\n", M_PI * a * a, 2.0 * a * M_PI);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]] | 1 | 47 |
#include <iomanip>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(8) << M_PI * 2 * r << " " << M_PI * r * r
<< endl;
} | #include <iomanip>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(8) << M_PI * r * r << " " << M_PI * 2 * r
<< endl;
} | [["-", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]] | 1 | 52 |
#include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.14159265
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * PI << " " << fixed
<< setprecision(6) << 2 * PI * r << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
const double PI = 3.14159265358979323846;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * PI << " " << fixed
<< setprecision(6) << 2 * PI * r << endl;
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 0, 30, 0, 43, 0, 153, 0, 154], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 0, 32], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35]] | 1 | 61 |
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double r;
cin >> r;
double a = 2 * M_PI * r;
double b = M_PI * r * r;
printf("%.6f %.6f\n", a, b);
} | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double r;
cin >> r;
double a = 2 * M_PI * r;
double b = M_PI * r * r;
printf("%.6f %.6f\n", b, a);
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 53 |
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
long r;
cin >> r;
double f = M_PI * r * r;
double g = 2 * M_PI * r;
cout << fixed << setprecision(6) << f << " ";
cout << fixed << setprecision(6) << f << endl;
return 0;
} | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
double f = M_PI * r * r;
double g = 2 * M_PI * r;
cout << fixed << setprecision(6) << f << " ";
cout << fixed << setprecision(6) << g << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 72 |
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main() {
double r;
scanf("%f", &r);
printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
return 0;
} | #define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 48 |
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(void) {
double r;
double round, surface;
cin >> r;
round = 2 * M_PI * r;
surface = M_PI * pow(r, 2);
cout << fixed << setprecision(6) << round << " " << surface << endl;
return 0;
} | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(void) {
double r;
double round, surface;
cin >> r;
round = 2 * M_PI * r;
surface = M_PI * pow(r, 2);
cout << fixed << setprecision(5) << surface << " " << round << endl;
return 0;
} | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 70 |
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int r;
cin >> r;
cout << setprecision(10);
cout << M_PI * r * r << " ";
cout << M_PI * 2 * r << endl;
} | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6);
cout << M_PI * r * r << " ";
cout << M_PI * 2 * r << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13]] | 1 | 52 |
#include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
double pi = 3.141592653589;
double area, circ;
area = 2 * pi * r;
circ = pi * r * r;
printf("%f %f\n", area, circ);
return 0;
} | #include <stdio.h>
int main() {
double r;
scanf("%lf", &r);
double pi = 3.141592653589;
double area, circ;
area = pi * r * r;
circ = 2 * pi * r;
printf("%f %f\n", area, circ);
return 0;
} | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22]] | 1 | 62 |
#include <cstdio>
#include <iostream>
using namespace std;
#define p 3.141592653589
int main() {
double r = 0;
cin >> r;
printf("%f %f\n", r * r * p, r * p);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
#define p 3.141592653589
int main() {
double r = 0;
cin >> r;
printf("%f %f\n", r * r * p, r * 2 * p);
return 0;
} | [["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]] | 1 | 47 |
#include <stdio.h>
int main() {
double r, pi;
pi = 3.141592653;
scanf("%lf", &r);
printf("%f %f\n", pi * r * r, 2 * pi * r);
return 0;
} | #include <stdio.h>
int main() {
double r, pi;
pi = 3.14159265358979;
scanf("%lf", &r);
printf("%f %f\n", pi * r * r, 2 * pi * r);
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 50 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.6lf", 2 * r * 3.141592653589);
cout << " ";
printf("%.6lf\n", r * r * 3.141592653589);
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
cin >> r;
printf("%.6lf", r * r * 3.141592653589);
cout << " ";
printf("%.6lf\n", 2 * r * 3.141592653589);
return 0;
} | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13]] | 1 | 57 |
#include <iostream>
using namespace std;
int main() {
int r;
cin >> r;
cout << fixed << (double)r * 2 * 3.14159265358979 << " " << fixed
<< (double)r * r * 3.14159265358979 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << (double)r * r * 3.14159265358979 << " " << fixed
<< (double)r * 2 * 3.14159265358979 << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]] | 1 | 52 |
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << r * r * 3.141592653589 << r * 2 * 3.141592653589 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << r * r * 3.141592653589 << " " << r * 2 * 3.141592653589
<< endl;
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 40 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, c, d, e;
cin >> a;
b = a * 2;
c = a * a;
d = b * 3.14159265;
e = c * 3.14159265;
printf("%6f", e);
cout << " ";
printf("%6f", d);
cout << endl;
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, c, d, e;
cin >> a;
b = a * 2;
c = a * a;
d = b * 3.14159265358979323846;
e = c * 3.14159265358979323846;
printf("%6f", e);
cout << " ";
printf("%6f", d);
cout << endl;
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 84 |
#include <iostream>
#include <stdio.h>
#define PI 3.1415926
using namespace std;
int main() {
int r;
double S, L;
cin >> r;
S = PI * r * r;
L = 2 * PI * r;
printf("%.8lf", S);
cout << " ";
printf("%.8lf\n", L);
return 0;
} | #include <iostream>
#include <stdio.h>
#define PI 3.14159265359
using namespace std;
int main() {
double r;
double S, L;
cin >> r;
S = PI * r * r;
L = 2 * PI * r;
printf("%.8lf", S);
cout << " ";
printf("%.8lf\n", L);
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 73 |
//============================================================================
// Name : ku.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostrea... | //============================================================================
// Name : ku.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostrea... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 64 |
#include <iostream>
#include <map>
#include <math.h>
using namespace std;
float r, p, q;
int main() {
scanf("%f", &r);
p = r * r * M_PI;
q = 2 * r * M_PI;
printf("%f %f\n", p, q);
} | #include <iostream>
#include <map>
#include <math.h>
using namespace std;
double r, p, q;
int main() {
scanf("%lf", &r);
p = r * r * M_PI;
q = 2 * r * M_PI;
printf("%f %f\n", p, q);
} | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.14159265, r * 2.0 * 3.14159265);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592653589, r * 2.0 * 3.141592653589);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 48 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double PI = 3.14159265358979;
double r;
cin >> r;
cout << fixed << setprecision(20) << r * r * PI << setprecision(20)
<< 2 * r * PI << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double PI = 3.14159265358979;
double r;
cin >> r;
cout << fixed << setprecision(20) << r * r * PI << " " << setprecision(20)
<< 2 * r * PI << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151]] | 1 | 57 |
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
double r;
cin >> r;
double P, S;
P = 2 * M_PI * r;
S = pow(r, 2) * M_PI;
printf("%.6lf %.6lf\n", P, S);
} | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
double r;
cin >> r;
double P, S;
P = 2 * M_PI * r;
S = pow(r, 2) * M_PI;
printf("%.6lf %.6lf\n", S, P);
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 60 |
#include <iomanip>
#include <iostream>
#define PI 3.14159265359
using namespace std;
int main(void) {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * PI << fixed << setprecision(6)
<< (r + r) * PI << endl;
return 0;
} | #include <iomanip>
#include <iostream>
#define PI 3.14159265359
using namespace std;
int main(void) {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * PI << ' ' << fixed
<< setprecision(6) << (r + r) * PI << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 60 |
#include <cstdio>
#include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
int main(void) {
double r;
double pai = 3.141592653589;
cin >> r;
printf("%.6f %.6\n", r * r * pai, 2 * r * pai);
return 0;
} | #include <cstdio>
#include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
int main(void) {
double r;
double pai = 3.141592653589;
cin >> r;
printf("%.6f %.6f\n", r * r * pai, 2 * r * pai);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 54 |
#include <algorithm>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
using namespace std;
double r;
int main() {
cin >> r;
printf("%f05 %f05\n", (r * 2 * M_PI), (r * r * M_PI));
return 0;
} | #include <algorithm>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
using namespace std;
double r;
int main() {
cin >> r;
printf("%f05 %f05\n", (r * r * M_PI), (r * 2 * M_PI));
return 0;
} | [["-", 3, 4, 0, 23, 0, 16, 31, 16, 12, 13], ["+", 3, 4, 0, 23, 0, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 23, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 23, 0, 16, 31, 16, 12, 13]] | 1 | 54 |
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(15) << 2 * r * M_PI << " " << fixed
<< setprecision(15) << r * r * M_PI << endl;
} | #define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(15) << r * r * M_PI << " " << fixed
<< setprecision(15) << 2 * r * M_PI << endl;
} | [["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13]] | 1 | 61 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
unsigned int r;
float circumference, area;
cin >> r;
circumference = r * r * M_PI;
area = 2 * M_PI * r;
printf("%lf %lf\n", circumference, area);
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double circumference, area;
cin >> r;
circumference = r * r * M_PI;
area = 2 * M_PI * r;
printf("%lf %lf\n", circumference, area);
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 57 |
#include <iostream>
#include <stdio.h>
using namespace std;
static const double PI = 3.141592;
int main(void) {
double r, menseki, ensyu;
cin >> r;
menseki = PI * r * r;
ensyu = 2 * PI * r;
printf("%.5f %.5f\n", menseki, ensyu);
} | #include <iostream>
#include <stdio.h>
using namespace std;
static const double PI = 3.141592653589;
int main(void) {
double r, menseki, ensyu;
cin >> r;
menseki = PI * r * r;
ensyu = 2 * PI * r;
printf("%f %f\n", menseki, ensyu);
} | [["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 61 |
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
float r, S, C;
cin >> r;
S = r * r * M_PI;
C = r * 2 * M_PI;
cout << fixed << setprecision(6) << S << " " << C << endl;
return 0;
} | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double r, S, C;
cin >> r;
S = r * r * M_PI;
C = r * 2 * M_PI;
cout << fixed << setprecision(6) << S << " " << C << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 65 |
#include <iomanip>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout << setprecision(10) << r * M_PI * r << " " << 2 * r * M_PI << endl;
return 0;
} | #include <iomanip>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
double r;
cin >> r;
cout << setprecision(15) << r * M_PI * r << " " << 2 * r * M_PI << endl;
return 0;
} | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]] | 1 | 53 |
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
double r;
;
cin >> r;
double area = M_PI * r * r;
double len = 2 * M_PI * r;
cout << setprecision(8) << area << " " << len << endl;
} | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
double r;
;
cin >> r;
double area = M_PI * r * r;
double len = 2 * M_PI * r;
cout << fixed << setprecision(8) << area << " " << len << endl;
} | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 66 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * 3.14159265 << " "
<< r * 2 * 3.14159265 << endl;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * 3.141592653589 << " "
<< r * 2 * 3.141592653589 << endl;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 48 |
#include <stdio.h>
int main() {
double a, b;
while (scanf("%lf", &a) != EOF) {
printf("%.6lf %.6lf\n", 3.141592654 * a * a, 2 * 3.14159264 * a);
}
return 0;
} | #include <stdio.h>
int main() {
double a, b;
while (scanf("%lf", &a) != EOF) {
printf("%.6lf %.6lf\n", 3.141592653589 * a * a, 2 * 3.141592653589 * a);
}
return 0;
} | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 1 | 52 |
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
double len(double r);
double width(double r);
int main() {
double r;
cin >> r;
cout << fixed << setprecision(5) << len(r) << " " << width(r) << endl;
return 0;
}
double len(double r) { return 2 * r * M_PI; }
double width(double r)... | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
double len(double r);
double width(double r);
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << width(r) << " " << len(r) << endl;
return 0;
}
double len(double r) { return 2 * r * M_PI; }
double width(double r)... | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22]] | 1 | 95 |
#include <cstdio>
using namespace std;
int main(void) {
double a;
scanf("%f", &a);
printf("%.6f %.6f\n", a * a * 3.141592653589, (2 * a) * 3.141592653589);
return 0;
} | #include <cstdio>
using namespace std;
int main(void) {
double a;
scanf("%lf", &a);
printf("%.6f %.6f\n", a * a * 3.141592653589, (2 * a) * 3.141592653589);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 51 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, c, r;
double pi = 3.141592653589;
cin >> r;
"\n";
a = r * 2;
b = a * pi;
c = r * r * pi;
cout << fixed << setprecision(8) << b << c << "\n";
} |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, c, r;
double pi = 3.141592653589;
cin >> r;
"\n";
a = r * 2;
b = a * pi;
c = r * r * pi;
cout << fixed << setprecision(8) << c << " " << b << "\n";
} | [["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 73 |
#include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%lf %lf\n", 3.14159265359 * r * r / 2, 3.14159265359 * 2 * r);
return 0;
} | #include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%lf %lf\n", 3.14159265359 * r * r, 3.14159265359 * 2 * r);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 47 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double r, pi = 3.141592;
cin >> r;
printf("%lf %lf\n", r * r * pi, (r + r) * pi);
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double r, pi = 3.141592653589;
cin >> r;
printf("%lf %lf\n", r * r * pi, (r + r) * pi);
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 45 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
const double PI = 3.141592654;
double r;
cin >> r;
printf("%f %f", r * r * PI, 2 * PI * r);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
const double PI = 3.14159265358979324;
double r;
cin >> r;
printf("%f %f", r * r * PI, 2 * PI * r);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 49 |
#include <iostream>
#include <stdio.h>
using namespace std;
#define PI 3.141592653589
int main(int argc, char *argv[]) {
double r;
cin >> r;
printf("%.8lf %.8lf\n", (double)2 * r * PI, (double)2 * r * PI);
} | #include <iostream>
#include <stdio.h>
using namespace std;
#define PI 3.141592653589
int main(int argc, char *argv[]) {
double r;
cin >> r;
printf("%.8lf %.8lf\n", (double)r * r * PI, (double)2 * r * PI);
} | [["-", 3, 4, 0, 16, 31, 16, 31, 74, 51, 13], ["+", 3, 4, 0, 16, 31, 16, 31, 74, 51, 22]] | 1 | 58 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(5) << r * r * 3.14159 << " " << r * 2 * 3.14159
<< endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(6) << r * r * 3.14159265358979 << " "
<< r * 2 * 3.14159265358979 << endl;
return 0;
} | [["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 51 |
#include <iostream>
#include <math.h>
using namespace std;
int main(void) {
double r;
cin >> r;
cout << r * r * M_PI << " " << 2 * r * M_PI << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main(void) {
double r;
cin >> r;
cout << fixed << r * r * M_PI << " " << fixed << 2 * r * M_PI << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]] | 1 | 45 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
double pi = 3.141592;
double r;
cin >> r;
cout << fixed << setprecision(6);
cout << pi * r * r <<... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
double pi = 3.14159265358979;
double r;
cin >> r;
cout << fixed << setprecision(6);
cout << pi * ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 74 |
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
// Here your code !
double a, b, c;
double pi = 3.14159265358979323846;
cin >> a;
b = 2 * a * pi;
c = a * a * pi;
std::printf("%.6f %.6f", b, c);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
// Here your code !
double a, b, c;
double pi = 3.14159265358979323846;
cin >> a;
b = 2 * a * pi;
c = a * a * pi;
std::printf("%.6f %.6f", c, b);
return 0;
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 64 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << r * r * M_PI << " " << 2 * r * M_PI << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << r * r * M_PI << " " << 2 * r * M_PI << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 44 |
#include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.14159265358979323
int main() {
double r;
cin >> r;
cout << fixed << setprecision(5) << (double)2 * PI * r * r << " "
<< (double)2 * PI * r << endl;
} | #include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.14159265358979323
int main() {
double r;
cin >> r;
cout << fixed << setprecision(5) << (double)PI * r * r << " "
<< (double)2 * PI * r << endl;
} | [["-", 12, 16, 31, 16, 31, 16, 31, 74, 51, 13], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 17, 48]] | 1 | 59 |
#include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.141592
int main() {
double r;
cin >> r;
cout << fixed << setprecision(5) << 2 * PI * r * r << " ";
cout << 2 * PI * r << endl;
} | #include <iomanip>
#include <iostream>
using namespace std;
#define PI 3.14159265358979323
int main() {
double r;
cin >> r;
cout << fixed << setprecision(5) << PI * r * r << " " << 2 * PI * r << endl;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 31, 13], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22]] | 1 | 55 |
#include <iomanip>
#include <iostream>
using namespace std;
const float PI = 3.141592;
int main(int argc, char **argv) {
float x;
cin >> x;
cout.setf(ios::fixed);
cout << setprecision(6) << PI * x * x;
cout << ' ';
cout << setprecision(6) << 2 * PI * x;
// cin>>x;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
const double PI = 3.141592653589;
int main(int argc, char **argv) {
double x;
cin >> x;
cout.setf(ios::fixed);
cout << setprecision(6) << PI * x * x;
cout << ' ';
cout << setprecision(6) << 2 * PI * x;
// cin>>x;
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 79 |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
double r;
scanf("%d", &r);
printf("%f %f", r * r * M_PI, 2 * r * M_PI);
return 0;
} | #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%f %f", r * r * M_PI, 2 * r * M_PI);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 50 |
#include <iostream>
using namespace std;
int main() {
const double pi = 3.141592653589;
double r, s, l;
cin >> r;
l = 2 * pi * r;
s = pi * r * r;
cout << fixed << l << " " << s << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
const double pi = 3.141592653589;
double r, s, l;
cin >> r;
l = 2 * pi * r;
s = pi * r * r;
cout << fixed << s << " " << l << endl;
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 62 |
#include <iostream>
using namespace std;
int main() {
double r;
float pi = 3.141592, s, l;
cin >> r;
s = pi * r * r;
l = 2 * pi * r;
cout << fixed << s << ' ' << fixed << l << endl;
} | #include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.14159265358979, s, l;
cin >> r;
s = pi * r * r;
l = 2 * pi * r;
cout << fixed << s << ' ' << fixed << l << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 60 |
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int r;
cin >> r;
cout << fixed << setprecision(5);
cout << 2 * r * M_PI << " " << r * r * M_PI << endl;
return 0;
} | #define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(7);
cout << r * r * M_PI << " " << 2 * r * M_PI << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31... | 1 | 59 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double a, b;
cin >> r;
a = r * r * 3.14159;
b = r * 2 * 3.14159;
printf("%.6lf %.6lf\n", a, b);
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r;
double a, b;
cin >> r;
a = r * r * 3.14159265358979;
b = r * 2 * 3.14159265358979;
printf("%.6lf %.6lf\n", a, b);
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 57 |
#include <math.h>
#include <stdio.h>
int main() {
float r = 0;
scanf("%f", &r);
printf("%f %f\n", r * r * (float)M_PI, r * 2 * (float)M_PI);
} | #include <math.h>
#include <stdio.h>
int main() {
double r = 0;
scanf("%lf", &r);
printf("%lf %lf\n", r * r * (double)M_PI, r * 2 * (double)M_PI);
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 3, 4, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 3, 4, 0, 16, 12, 74, 39, 77, 39, 40]] | 1 | 51 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double r;
cout << fixed << r * r * M_PI << " " << fixed << 2 * r * M_PI << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
cout << fixed << r * r * M_PI << " " << fixed << 2 * r * M_PI << endl;
} | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 41 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
double r;
int main() {
cin >> r;
printf("%f %f\n", 2 * r * M_PI, r * r * M_PI);
} | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
double r;
int main() {
cin >> r;
printf("%f %f\n", r * r * M_PI, 2 * r * M_PI);
} | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13]] | 1 | 57 |
#include <stdio.h>
#define PI 3.1415926
int main() {
double r, s, l;
scanf("%lf", &r);
s = r * r * PI;
l = 2 * PI * r;
printf("%f %f\n", s, l);
return 0;
} | #include <stdio.h>
#define PI 3.141592653589793
int main() {
double r, s, l;
scanf("%lf", &r);
s = r * r * PI;
l = 2 * PI * r;
printf("%f %f\n", s, l);
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 59 |
#include <stdio.h>
int main(void) {
double r, pai;
pai = 3.141592653589;
scanf("%f", &r);
printf("%f %f", pai * r * r, 2 * pai * r);
return 0;
} |
#include <stdio.h>
int main(void) {
double r, pai;
pai = 3.141592653589;
scanf("%lf", &r);
printf("%lf %lf", pai * r * r, 2 * pai * r);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 50 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, l, s;
cin >> r;
l = 2 * r * 3.141592653589;
s = r * r * 3.141592653589;
cout << fixed << setprecision(6) << l << " " << s;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r, l, s;
cin >> r;
l = 2 * r * 3.141592653589;
s = r * r * 3.141592653589;
cout << fixed << setprecision(6) << s << " " << l;
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 61 |
#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a;
cin >> a;
printf("%lf %lf", a * a * M_PI, 2 * M_PI);
return (0);
} | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a;
cin >> a;
printf("%lf %lf", a * a * M_PI, 2 * a * M_PI);
return (0);
} | [["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
cout.precision(10);
double r, a, c;
cin >> r;
a = r * r * 3.141592653589;
c = r * 2 * 3.141592653589;
cout << a << " " << c << endl;
} | #include <iostream>
using namespace std;
int main() {
cout.precision(20);
double r, a, c;
cin >> r;
a = r * r * 3.141592653589;
c = r * 2 * 3.141592653589;
cout << a << " " << c << endl;
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 58 |
#include <stdio.h>
int main() {
double r = 0;
double pi = 3.14159265;
scanf("%lf", &r);
printf("%f %f\n", (r * r * pi), (2 * r * pi));
return 0;
} | #include <stdio.h>
int main() {
double r = 0;
double pi = 3.1415926535897932384626;
scanf("%lf", &r);
printf("%f %f\n", (r * r * pi), (2 * r * pi));
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 55 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int r;
cin >> r;
double P = 3.14159265;
double S = P * r * r;
double L = 2 * P * r;
cout << fixed << setprecision(6) << S << ' ' << L << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
double P = 3.141592653589793;
double S = P * r * r;
double L = 2 * P * r;
cout << fixed << setprecision(6) << S << ' ' << L << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 66 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, pi = 3.1415927;
cin >> r;
double l = 2 * pi * r;
double s = pi * r * r;
printf("%f %f\n", s, l);
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double r, pi = 3.14159265359;
cin >> r;
double l = 2 * pi * r;
double s = pi * r * r;
printf("%f %f\n", s, l);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 58 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
double area = r * r * 3.141592653589;
double circle = 2 * r * 3.141592653589;
printf("%fl %fl", area, circle);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
double area = r * r * 3.141592653589;
double circle = 2 * r * 3.141592653589;
printf("%f %f", area, circle);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 53 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
const double Pi = 3.141592;
double r;
cin >> r;
double s = Pi * r * r;
double l = 2 * Pi * r;
cout << fixed << setprecision(6) << s << " " << l << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
const double Pi = 3.14159265358979;
double r;
cin >> r;
double s = Pi * r * r;
double l = 2 * Pi * r;
cout << fixed << setprecision(6) << s << " " << l << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 67 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
double pi = 3.141592653589;
double L = 2 * r * pi;
double S = r * r * pi;
cout << fixed << setprecision(12) << L << " " << S << endl;
return 0;
} | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double r;
cin >> r;
double pi = 3.141592653589;
double L = 2 * r * pi;
double S = r * r * pi;
cout << fixed << setprecision(12) << S << " " << L << endl;
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 66 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.141592653;
cin >> r;
double s = r * r * pi;
double l = r * 2 * pi;
printf("%.6lf %.6lf\n", s, l);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r;
double pi = 3.141592653589;
cin >> r;
double s = r * r * pi;
double l = r * 2 * pi;
printf("%.6lf %.6lf\n", s, l);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 59 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.