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
#include <iostream> using namespace std; int main() { double r; cin >> r; double c = 3.141592653589; cout << fixed << 2 * r * c << " " << fixed << r * r * c << endl; return 0; }
#include <iostream> using namespace std; int main() { double r; cin >> r; double c = 3.141592653589; cout << fixed << r * r * c << " " << fixed << 2 * r * c << endl; return 0; }
[["-", 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
51
#include <algorithm> #include <cstdio> #include <iostream> #include <math.h> // M_PI #include <vector> using namespace std; int main() { int r; cin >> r; printf("%f, %f\n", r * r * M_PI, 2 * r * M_PI); }
#include <algorithm> #include <cstdio> #include <iostream> #include <math.h> // M_PI #include <vector> using namespace std; int main() { double r; cin >> r; printf("%f %f\n", r * r * M_PI, 2 * r * 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]]
1
48
#include <cstdio> #include <iostream> using namespace std; #define PI 3.14159265 int main(void) { double x, z; cin >> x; z = x * PI; printf("%.6f %.6f\n", z * x, z * 2.0); return 0; }
#include <cstdio> #include <iostream> using namespace std; #define PI 3.141592653589 int main(void) { double x, z; cin >> x; z = x * PI; printf("%.6f %.6f\n", z * x, z * 2.0); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
52
#include <cstdio> #include <iostream> using namespace std; int main() { double r; cin >> r; printf("%f %f\n", r * r * 3.141562653589, 2 * r * 3.141592653589); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; cin >> r; printf("%f %f\n", r * r * 3.141592653589, 2 * r * 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
44
#include <cstdio> #include <iostream> using namespace std; int main() { double PI = 3.1415926592653589; double r; cin >> r; printf("%lf %lf\n", PI * r * r, 2 * PI * r); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double pi = 3.1415926535897; double r; cin >> r; printf("%lf %lf\n", pi * r * r, 2 * pi * r); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 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, 12, 22], ["+", 0, 2, 3, 4, 0, ...
1
49
#include <cstdio> #include <iostream> using namespace std; int main() { double r; cin >> r; printf("%lf %lf\n", (double)r * r * 3.141592, (double)2 * r * 3.141592); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; cin >> r; printf("%lf %lf\n", (double)r * r * 3.141592653589, (double)2 * r * 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
50
#include <iostream> #include <stdio.h> using namespace std; int main() { double r, s, l; const double pi = 3.141592653; cin >> r; s = r * r * pi; l = 2 * r * pi; printf("%f, %f\n", s, l); return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { double r, s, l; const double pi = 3.141592653589; cin >> r; s = r * r * pi; l = 2 * r * pi; 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], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
62
#include <cstdio> #include <iomanip> #include <iostream> using namespace std; int main() { const double pai = 3.14159; double r; cin >> r; printf("%.5lf %.5lf\n", pai * r * r, 2 * pai * r); return 0; }
#include <cstdio> #include <iomanip> #include <iostream> using namespace std; int main() { const double pai = 3.141592653589; double r; cin >> r; printf("%.5lf %.5lf\n", pai * r * r, 2 * pai * r); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
52
#include <stdio.h> int main(void) { double r, n, s, p; p = 3.14159265; scanf("%lf", &r); n = p * r * r; s = p * r * r; printf("%f %f\n", n, s); return 0; }
#include <stdio.h> int main(void) { double r, n, s, p; p = 3.141592653589; scanf("%lf", &r); n = p * r * r; s = p * 2 * r; printf("%f %f\n", n, s); 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, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]]
1
63
#include <bits/stdc++.h> using namespace std; signed main() { double a; scanf("%d", &a); printf("%.10lf %.10lf\n", a * a * M_PI, a * 2 * M_PI); }
#include <bits/stdc++.h> using namespace std; signed main() { double a; scanf("%lf", &a); printf("%.10lf %.10lf\n", a * a * M_PI, a * 2 * M_PI); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
45
#include <cstdio> int main(void) { double a = 3.1415927; double r; scanf("%lf", &r); printf("%f %f\n", a * r * r, 2 * a * r); return 0; }
#include <cstdio> int main(void) { double a = 3.14159265359; double r; scanf("%lf", &r); printf("%f %f\n", a * r * r, 2 * a * r); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
50
#include <iomanip> #include <iostream> using std::cin; using std::cout; using std::endl; int main(void) { double r; cin >> r; double pi = 3.141592653589793; cout << std::setprecision(8); cout << pi * r * r << " " << 2 * pi * r << endl; return 0; }
#include <iomanip> #include <iostream> using std::cin; using std::cout; using std::endl; int main(void) { double r; cin >> r; double pi = 3.141592653589793; cout << std::setprecision(20); cout << pi * r * r << " " << 2 * pi * r << endl; return 0; }
[["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13]]
1
70
#include <stdio.h> int main() { double r; double S = 0.0, L = 0.0, pi = 3.14159265359; scanf("lf", &r); S = r * r * pi; L = r * 2 * pi; printf("%.6lf %.6lf\n", S, L); return 0; }
#include <stdio.h> int main() { double r; double S = 0.0, L = 0.0, pi = 3.14159265359; scanf("%lf", &r); S = r * r * pi; L = r * 2 * pi; printf("%.6lf %.6lf\n", S, L); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
65
#include <stdio.h> int main() { double r; double S = 0.0, L = 0.0, pi = 3.14159265359; scanf("lf", &r); S = r * r * pi; L = r * 2 * pi; printf("%.6lf %.6lf\n", S, L); return 0; }
#include <stdio.h> int main() { double r; double S = 0.0, L = 0.0, pi = 3.14159265359; scanf("%lf", &r); S = r * r * pi; L = 2 * r * pi; printf("%.6lf %.6lf\n", S, L); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 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]]
1
65
#include <stdio.h> int main(void) { double r, s, n; scanf("%lf", &r); s = r * r * 3.141592653589; n = 2 * r * 3.121592653589; printf("%lf %lf\n", s, n); return 0; }
#include <stdio.h> int main(void) { double r, s, n; scanf("%lf", &r); s = r * r * 3.141592653589; n = 2 * r * 3.141592653589; printf("%lf %lf\n", s, n); 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 <iostream> #include <stdio.h> #include <vector> using namespace std; #define PI 3.1415926535 int main() { double x, y; cin >> x; printf("%lf %lf\n", 2 * x * PI, x * x * PI); return 0; }
#include <iostream> #include <stdio.h> #include <vector> using namespace std; #define PI 3.141592653589 int main() { double x, y; cin >> x; printf("%lf %lf\n", x * x * PI, 2.0 * x * PI); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 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
51
#include <bits/stdc++.h> #define Pi 3.14159265 using namespace std; int main() { double r; cin >> r; printf("%lf %lf\n", pow(r, 2) * Pi, 2 * r * Pi); return 0; }
#include <bits/stdc++.h> #define Pi 3.14159265358979 using namespace std; int main() { double r; cin >> r; printf("%lf %lf\n", pow(r, 2) * 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 <iostream> #include <stdio.h> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int HelloWorld() { cout << "Hello World" << endl; return 0; } int XCubic() { int x; cin >> x; if (1 <= x && x <= 100) { x = x * x * x; cout << x << endl; return 0; } retu...
#include <iostream> #include <stdio.h> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int HelloWorld() { cout << "Hello World" << endl; return 0; } int XCubic() { int x; cin >> x; if (1 <= x && x <= 100) { x = x * x * x; cout << x << endl; return 0; } retu...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
1,109
#include <stdio.h> int main(void) { double r; double pi = 3.14159; scanf("%lf", &r); printf("%f %f\n", pi * r * r, 2 * pi * r); return 0; }
#include <stdio.h> int main(void) { double r; double pi = 3.1415926535898; scanf("%lf", &r); 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
50
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double men, syu; cin >> r; men = r * r * 3.14159264; syu = 2 * r * 3.14159264; printf("%lf %lf\n", men, syu); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double men, syu; cin >> r; men = r * r * 3.141592653589; syu = 2 * r * 3.141592653589; printf("%lf %lf\n", men, syu); 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 <cstdio> #include <iostream> using namespace std; int main() { double r; double pi = 3.14159265; cin >> r; printf("%f %f", r * r * pi, 2.0 * pi * r); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double pi = 3.141592653589; cin >> r; printf("%f %f", r * r * pi, 2.0 * 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
48
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main(int argc, char const *argv[]) { double r, area, circum; cin >> r; area = r * r * M_PI; circum = 2 * r * M_PI; printf("%fl %fl", area, circum); return 0; }
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main(int argc, char const *argv[]) { double r, area, circum; cin >> r; area = r * r * M_PI; circum = 2 * r * M_PI; printf("%lf %lf", area, circum); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
66
//============================================================================ // Name : HelloCPP.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <...
//============================================================================ // Name : HelloCPP.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
62
#include <cmath> #include <iostream> #define _USE_MATH_DEFINES #include <iomanip> #include <math.h> #include <string> int main(int argc, char *argv[]) { double r; std::cin >> r; double s = M_PI * r * r; double l = 2 * M_PI * r; std::cout << std::fixed; std::cout << std::setprecision(9) << s << " " << r <<...
#include <cmath> #include <iostream> #define _USE_MATH_DEFINES #include <iomanip> #include <math.h> #include <string> int main(int argc, char *argv[]) { double r; std::cin >> r; double s = M_PI * r * r; double l = 2 * M_PI * r; std::cout << std::fixed; std::cout << std::setprecision(9) << s << " " << l <<...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
87
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { double r; cin >> r; cout << fixed << setprecision(8) << 2 * r * M_PI << " " << r * r * M_PI << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { double r; cin >> r; cout << fixed << setprecision(8) << r * r * M_PI << " " << 2 * r * M_PI << endl; return 0; }
[["-", 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
58
#include <iomanip> #include <iostream> using namespace std; double r; int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> r; cout << fixed << setprecision(5) << r * r * 3.141592 << " " << fixed << setprecision(5) << 2 * r * 3.141592 << "\n"; return 0; }
#include <iomanip> #include <iostream> using namespace std; double r; int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> r; cout << fixed << setprecision(5) << r * r * 3.141592653589 << " " << fixed << setprecision(5) << 2 * r * 3.141592653589 << "\n"; return 0; }
[["-", 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
74
#include <stdio.h> int main() { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.14159265, 2 * 3.14159265 * r); return 0; }
#include <stdio.h> int main() { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.141592653589, 2 * 3.141592653589 * r); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]]
1
44
#include <stdio.h> int main() { float r, t, y; scanf("%f", &r); y = 2 * r * 3.141592653; t = r * r * 3.141592653; printf("%.6f %.6f\n", t, y); return 0; }
#include <stdio.h> int main() { double r, t, y; scanf("%lf", &r); y = 2 * r * 3.141592653589; t = r * r * 3.141592653589; printf("%.6f %.6f\n", t, y); 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], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
56
#include <iomanip> #include <iostream> using namespace std; int main() { double x; double r = 0, t = 0; cin >> x; r = 2 * x * 3.14159265; t = x * x * 3.14159265; cout << setprecision(6) << fixed << t << " " << setprecision(6) << fixed << r << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double x; double r = 0, t = 0; cin >> x; r = 2 * x * 3.141592653589; t = x * x * 3.141592653589; cout << setprecision(6) << fixed << t << " " << setprecision(6) << fixed << r << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
75
#include <iomanip> #include <iostream> using namespace std; int main() { double r, p; cin >> r; p = 3.141592657589; cout << fixed << setprecision(6) << r * r * p << " " << fixed << setprecision(6) << (r + r) * p << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r, p; cin >> r; p = 3.141592653589; cout << fixed << setprecision(6) << r * r * p << " " << fixed << setprecision(6) << (r + r) * p << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
66
#include <iostream> #include <math.h> using namespace std; int main() { double r; double area; double cir; // circumference cin >> r; area = r * r * M_PI; cir = 2 * r * M_PI; cout << area << " " << cir << " "; cout << endl; return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { double r; double area; double cir; // circumference cin >> r; area = r * r * M_PI; cir = 2 * r * M_PI; cout << fixed << area << " " << fixed << cir << " "; cout << 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
65
#include <cstdio> #include <iostream> using namespace std; int main() { double r, S, L; cin >> r; S = r * r * 3.1415926; L = 2 * r * 3.1415926; printf("%0.6lf %0.6lf\n", S, L); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r, S, L; cin >> r; S = r * r * 3.14159265358979; L = 2 * r * 3.14159265358979; printf("%0.6lf %0.6lf\n", S, L); 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 <iomanip> #include <iostream> using namespace std; int main() { int r; cin >> r; static const double PI = 3.14159265; double s = r * r * PI; double c = r * 2 * PI; cout << fixed << setprecision(6) << s << ' ' << c << ' ' << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; static const double PI = 3.14159265358979; double s = r * r * PI; double c = r * 2 * 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], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
72
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int main() { int r = 0; cin >> r; printf("%f ", M_PI * r * 2); printf("%f\n", M_PI * r * r); return 0; }
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int main() { double r = 0; cin >> r; printf("%f ", M_PI * r * r); printf("%f\n", M_PI * r * 2); 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, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
55
#include <cstdio> #include <iostream> using namespace std; int main() { double r, are, circ; cin >> r; are = 2 * 3.141592653589 * r; circ = r * r * 3.141592653589; printf("%f %f\n", are, circ); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r, are, circ; cin >> r; are = 2 * 3.141592653589 * r; circ = r * r * 3.141592653589; printf("%f %f\n", circ, are); 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
56
#include <stdio.h> int main() { float r; scanf("%f", &r); printf("%f %f\n", 3.14159265 * r * r, 2.0 * 3.14159265 * r); return 0; }
#include <stdio.h> int main() { double r; scanf("%lf", &r); printf("%f %f\n", 3.141592653589 * r * r, 2.0 * 3.141592653589 * r); 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], ["-", 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...
1
44
//============================================================================ // Name : ITP_1_4_B.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include ...
//============================================================================ // Name : ITP_1_4_B.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include ...
[["-", 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
52
#include <math.h> #include <stdio.h> #define M_PI 3.14159265 int main(void) { int i, j; double r; scanf("%lf", &r); printf("%lf %lf\n", M_PI * r * r, 2 * M_PI * r); return 0; }
#include <math.h> #include <stdio.h> #define M_PI 3.141592653589793 int main(void) { int i, j; double r; scanf("%lf", &r); printf("%lf %lf\n", M_PI * r * r, 2 * M_PI * r); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
55
#include <stdio.h> int main() { unsigned long long n; double a; double S, C; double PI = 3.14159265; scanf("%lf", &a); S = a * a * PI; C = a * 2 * PI; printf("%f %f\n", S, C); return 0; }
#include <stdio.h> int main() { unsigned long long n; double a; double S, C; double PI = 3.141592653589; scanf("%lf", &a); S = a * a * PI; C = a * 2 * PI; printf("%f %f\n", S, C); 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 <cstdio> #include <iostream> using namespace std; int main() { double PI = 3.14592653589; double r; cin >> r; printf("%lf %lf\n ", PI * r * r, 2 * PI * r); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double PI = 3.141592653589; double r; cin >> r; printf("%lf %lf\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
50
#include <math.h> #include <stdio.h> int main(void) { double r; scanf("%f", &r); printf("%f %f\n", 2 * r * M_PI, r * r * M_PI); return 0; }
#include <math.h> #include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%lf %lf\n", 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], ["-", 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
47
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { double pai = 3.14159, r, x, y, z; cin >> r; printf("%1.6f %1.6f", (double)r * r * pai, 2 * r * pai); }
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { double pai = 3.141592653589793, r, x, y, z; cin >> r; printf("%1.6f %1.6f", r * r * pai, 2 * r * pai); }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 3, 4, 0, 16, 31, 16, 31, 74, 0, 24], ["-", 0, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["-", 3, 4, 0, 16, 31, 16, 31, 74, 0, 25]]
1
57
// ConsoleApplication7.cpp : ??????????????? // ??¢????????±????????§????????¨????????? ????????????????????????????????? // #include <stdio.h> int main(int argc, char *argv[]) { double r; double syu, men; const double pi = 3.1415926; char temp[100]; fgets(temp, sizeof(temp), stdin); sscanf(temp, "%lf", ...
// ConsoleApplication7.cpp : ??????????????? // ??¢????????±????????§????????¨????????? ????????????????????????????????? // #include <stdio.h> int main(int argc, char *argv[]) { double r; double syu, men; const double pi = 3.141592653589793; char temp[100]; fgets(temp, sizeof(temp), stdin); sscanf(temp,...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 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, 22]]
1
94
#include <bits/stdc++.h> using namespace std; double r; double teisuu = 3.141592653589; double mennseki, ennsyuu; int main() { cin >> r; mennseki = r * teisuu * teisuu; ennsyuu = 2 * r * teisuu; cout << fixed << mennseki << " "; cout << fixed << ennsyuu << endl; }
#include <bits/stdc++.h> using namespace std; double r; double teisuu = 3.141592653589; double mennseki, ennsyuu; int main() { cin >> r; mennseki = r * r * teisuu; ennsyuu = 2 * r * teisuu; cout << fixed << mennseki << " "; cout << fixed << ennsyuu << endl; }
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22]]
1
63
#include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << setprecision(20) << 2 * r * 3.141592653589 << " " << r * r * 3.141592653589 << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << setprecision(20) << r * r * 3.141592653589 << " " << 2 * r * 3.141592653589 << endl; return 0; }
[["-", 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
49
#include <algorithm> #include <climits> #include <cstdio> #include <functional> #include <iostream> #include <limits.h> #include <queue> #include <string.h> #include <string> #include <vector> using namespace std; signed main() { double a; cin >> a; double PI = 3.14159265; printf("%.10lf %.10lf\n", a * a * PI,...
#include <algorithm> #include <climits> #include <cstdio> #include <functional> #include <iostream> #include <limits.h> #include <queue> #include <string.h> #include <string> #include <vector> using namespace std; signed main() { double a; cin >> a; double PI = 3.14159265358979; printf("%.10lf %.10lf\n", a * a...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
62
#include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.141, r * 2.00 * 3.141); return 0; }
#include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.141592653589, r * 2.00 * 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
45
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { int r; cin >> r; cout << fixed; cout << setprecision(6); cout << 2 * r * M_PI << " " << r * r * M_PI << endl; return 0; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << fixed; cout << setprecision(6); 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], ["-", 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
57
#include <iostream> #include <math.h> using namespace std; int main() { float r; cin >> r; cout << r * r * M_PI << " "; cout << 2 * r * M_PI << endl; return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { double r; cin >> r; cout << fixed; cout << r * r * M_PI << " "; cout << 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, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
46
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <stack> #include <stdio.h> #include <string> #include <utility> #include <vector> using namespace std; int main() { double r; cin >> r; printf("%.10f %.10f", r * r * 3.1415926, 2 * r * 3.1415926); return 0; }
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <stack> #include <stdio.h> #include <string> #include <utility> #include <vector> using namespace std; int main() { double r; cin >> r; printf("%.10f %.10f", r * r * 3.1415926535897, 2 * r * 3.1415926535897); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
57
#include <iomanip> #include <iostream> using namespace std; int main() { int r; double syuu, menseki; cin >> r; syuu = 2 * 3.141592653589 * r; menseki = r * r * 3.141592653589; cout << setprecision(8) << menseki << " " << syuu << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r; double syuu, menseki; cin >> r; syuu = 2 * 3.141592653589 * r; menseki = r * r * 3.141592653589; cout << fixed << setprecision(6) << menseki << " " << syuu << 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, 31, 16, 31, 16, 17, 151], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
62
#include <cstdio> #include <math.h> using namespace std; int main() { float r; float I, L; scanf("%f", &r); I = r * r * M_PI; L = r * 2 * M_PI; printf("%.6lf %.6lf\n", I, L); }
#include <cstdio> #include <math.h> using namespace std; int main() { double r; double I, L; scanf("%lf", &r); I = r * r * M_PI; L = r * 2 * M_PI; printf("%.6lf %.6lf\n", I, L); }
[["-", 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
60
#define _USE_MATH_DEFINES #include <iomanip> #include <iostream> #include <math.h> int main() { double r; std::cin >> r; std::cout << std::setprecision(6) << std::fixed << r * r * M_PI << 2 * r * M_PI << std::endl; return 0; }
#define _USE_MATH_DEFINES #include <iomanip> #include <iostream> #include <math.h> int main() { double r; std::cin >> r; std::cout << std::setprecision(6) << std::fixed << r * r * M_PI << " " << 2 * r * M_PI << std::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
57
#include <iostream> #include <stdio.h> using namespace std; int main() { double f, PI; PI = 3.14159265; cin >> f; printf("%f %f\n", f * f * PI, 2 * f * PI); return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { double f, PI; PI = 3.141592653589; cin >> f; printf("%f %f\n", f * f * PI, 2 * f * PI); 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 <stdio.h> int main(void) { double r, i, n, m; scanf("%lf", &r); m = 3.14159265; i = 2 * r * m; n = r * r * m; printf("%lf %lf\n", n, i); return 0; }
#include <stdio.h> int main(void) { double r, i, n, m; scanf("%lf", &r); m = 3.14159265358979323846; i = 2 * r * m; n = r * r * m; printf("%lf %lf\n", n, i); return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
63
#include <iostream> #include <stdio.h> using namespace std; int main() { float r; cin >> r; printf("%.6lf", (double)r * (double)r * 3.1415926); cout << " "; printf("%.6lf", (double)r * 2 * 3.1415926); return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { double r; cin >> r; printf("%.6lf", (double)r * (double)r * 3.141592653589); cout << " "; printf("%.6lf", (double)r * 2 * 3.141592653589); 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, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
65
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double r, s, l; cin >> r; s = M_PI * pow(r, 2); l = M_PI * 2.0 * r; cout << fixed << setprecision(6) << s << " " << fixed << setprecision(6) << endl; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double r, s, l; cin >> r; s = M_PI * pow(r, 2); l = M_PI * 2.0 * r; cout << fixed << setprecision(6) << s << " " << fixed << setprecision(6) << l << endl; }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
70
package main import ( "bufio" "fmt" "os" "strconv" "math" ) func main(){ r := nextFloat64() fmt.Printf("%v %v\n", 2*r*math.Pi, r*r*math.Pi); } /* templates */ func Max(a ...int) int { r := a[0] for i := 0; i < len(a); i++ { if r < a[i] { r = a[i] } ...
package main import ( "bufio" "fmt" "os" "strconv" "math" ) func main(){ r := nextFloat64() fmt.Printf("%f %f\n", r*r*math.Pi, 2*r*math.Pi); } /* templates */ func Max(a ...int) int { r := a[0] for i := 0; i < len(a); i++ { if r < a[i] { r = a[i] } ...
[["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["-", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["+", 8, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["+", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 31, 433], ["+", 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, 1...
7
566
#include <stdio.h> int main(void) { float r = 0; float a = 3.141592653589; scanf("%f", &r); printf("%6f %6f\n", r * r * a, r * 2 * a); return 0; }
#include <stdio.h> int main(void) { double r = 0; double a = 3.141592653589; scanf("%lf", &r); printf("%6lf %6lf\n", r * r * a, r * 2 * a); 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
52
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; int main(void) { int r; cin >> r; double area = r * r * M_PI; double leng = r * 2 * M_PI; cout << area << " " << leng << endl; return 0; }
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; int main(void) { double r; cin >> r; double area = r * r * M_PI; double leng = r * 2 * M_PI; cout << fixed << area << " " << leng << 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, 31, 16, 31, 16, 17, 151], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
57
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include <cmath> #include <cstdio> int main() { double r; double c, a; scanf("%lf", &r); c = 2 * r * M_PI; a = r * r * M_PI; printf("%.6f %.6f\n", c, a); return 0; }
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include <cmath> #include <cstdio> int main() { double r; double c, a; scanf("%lf", &r); c = 2 * r * M_PI; a = r * r * M_PI; printf("%.6f %.6f\n", a, c); 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
63
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; int main(void) { int r; cin >> r; cout << fixed << r * r * M_PI << " " << 2 * M_PI << endl; return 0; }
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; int main(void) { double r; cin >> r; cout << fixed << 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, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
49
#include <bits/stdc++.h> using namespace std; int main() { double r, pi = 3.141592653589; cin >> r; cout << r * r * pi << " " << 2 * r * pi << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double r, pi = 3.141592653589; cin >> r; cout << fixed << r * r * pi << " " << 2 * r * 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
46
#include <stdio.h> int main() { double r, l, s; double pi = 3.141592653589; scanf("%f", &r); s = pi * r * r; l = 2 * pi * r; printf("%f %f\n", s, l); return 0; }
#include <stdio.h> int main() { double r, l, s; double pi = 3.141592653589; scanf("%lf", &r); s = pi * r * r; l = 2 * pi * r; printf("%f %f\n", s, l); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
61
#include <stdio.h> using namespace std; #define PI 3.1415926535 int main() { double r; scanf("%lf", &r); printf("%.6lf %.6lf", r * 2 * PI, r * r * PI); return 0; }
#include <stdio.h> using namespace std; #define PI 3.141592653589793238462643383279 int main() { double r; scanf("%lf", &r); printf("%.6lf %.6lf", r * r * PI, r * 2 * PI); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 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
50
#include <cstdio> #include <iostream> using namespace std; //#define B #define B #ifdef B #define PI 3.141592653589f int main(void) { double r; cin >> r; printf("%.6f %.6f\n", PI * r * r, 2.0 * PI * r); return 0; } #endif // B
#include <cstdio> #include <iostream> using namespace std; //#define B #define B #ifdef B const double PI = 3.141592653589; int main(void) { double r; cin >> r; printf("%.6f %.6f\n", PI * r * r, 2.0 * PI * r); return 0; } #endif // B
[["-", 36, 36, 0, 30, 0, 171, 0, 58, 0, 148], ["+", 0, 30, 0, 171, 0, 43, 0, 153, 0, 154], ["+", 36, 36, 0, 30, 0, 171, 0, 43, 39, 40], ["-", 36, 36, 0, 30, 0, 171, 0, 58, 51, 59], ["+", 0, 30, 0, 171, 0, 43, 49, 50, 0, 32], ["+", 0, 30, 0, 171, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 171, 0, 43, 0, 35]]
1
55
#include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%f %f", r * r * 3.14, 2 * 3.14 * r); return 0; }
#include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.14159265358979, 2 * 3.14159265358979 * r); return 0; }
[["+", 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], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]]
1
44
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << setprecision(10) << r * r * acos(-1) << " " << setprecision(10) << 2 * r * acos(-1) << endl; return 0; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << setprecision(20) << r * r * acos(-1) << " " << setprecision(20) << 2 * r * acos(-1) << endl; return 0; }
[["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
62
#include <iostream> #include <stdio.h> using namespace std; const double pi = 3.1415926535; int main() { double r, l, a; cin >> r; l = 2 * r * pi; a = r * r * pi; printf("%.6lf ", l); printf("%.6lf\n", a); return 0; }
#include <iostream> #include <stdio.h> using namespace std; const double pi = 3.141592653589793; int main() { double r, l, a; cin >> r; l = 2 * r * pi; a = r * r * pi; printf("%.6lf ", a); printf("%.6lf\n", l); return 0; }
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
69
#include <iomanip> #include <iostream> using namespace std; int main() { const double Pi = 3.14159265359; double a; cin >> a; cout << fixed << setprecision(5) << a * a << " " << 2.0 * a * Pi << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { const double Pi = 3.14159265359; double a; cin >> a; cout << fixed << setprecision(5) << Pi * a * a << " " << 2.0 * a * Pi << endl; return 0; }
[["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
55
#include <iostream> using namespace std; #define PI 3.141592653589 int main() { double r; cin >> r; cout << r * r * PI << " " << r * 2 * PI << endl; return 0; }
#include <iostream> using namespace std; #define PI 3.141592653589 int main() { double r; cin >> r; cout << fixed << r * r * PI << " " << r * 2 * 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
45
#include <iostream> using namespace std; int main() { double a; cin >> a; cout << fixed << a * 2 * 3.141592653589 << ' ' << a * a * 3.141592653589 << '\n'; return 0; }
#include <iostream> using namespace std; int main() { double a; cin >> a; cout << fixed << a * a * 3.141592653589 << ' ' << a * 2 * 3.141592653589 << '\n'; return 0; }
[["-", 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
46
#include <stdio.h> int main() { double n; scanf("%d", &n); printf("%lf %lf\n", n * n * 3.14159265358979323846, n * 2 * 3.14159265358979323846); }
#include <stdio.h> int main() { double n; scanf("%lf", &n); printf("%lf %lf\n", n * n * 3.14159265358979323846, n * 2 * 3.14159265358979323846); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
41
#include <stdio.h> int main(void) { double r = 0.0; float area = 0, length = 0; double pai = 3.141592653589; scanf("%lf", &r); area = r * r * pai; length = r * 2 * pai; printf("%f %f\n", area, length); }
#include <stdio.h> int main(void) { double r = 0.0; double area = 0, length = 0; double pai = 3.141592653589; scanf("%lf", &r); area = r * r * pai; length = r * 2 * pai; printf("%f %f\n", area, length); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
66
#include <stdio.h> double r, s, l, x; int main() { x = 3.141592653589; scanf("%d", &r); s = (double)r * (double)r * (double)x; l = 2 * (double)r * (double)x; printf("%lf %lf\n", s, l); }
#include <stdio.h> double r, s, l, x; int main() { x = 3.141592653589; scanf("%lf", &r); s = (double)r * (double)r * (double)x; l = 2 * (double)r * (double)x; printf("%6f %6f\n", s, l); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
74
#include <iostream> #include <stdio.h> using namespace std; int main() { double r; cin >> r; printf("%.7lf\n", r * r * 3.1415926535); printf("%.7lf\n", r * 2 * 3.1415926535); return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { double r; cin >> r; printf("%.7lf ", r * r * 3.141592653589); printf("%.7lf\n", r * 2 * 3.141592653589); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
52
#include <cstdio> #include <iomanip> #include <iostream> using namespace std; const int M = 100000; const double pi = 3.14159265; int main() { cout << fixed; double r; cin >> r; printf("%.8lf %.8lf\n", pi * r * r, 2 * pi * r); return 0; }
#include <cstdio> #include <iomanip> #include <iostream> using namespace std; const int M = 100000; const double pi = 3.141592653589; int main() { cout << fixed; double r; cin >> r; printf("%.8lf %.8lf\n", pi * r * r, 2 * pi * r); return 0; }
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]]
1
62
#include <iostream> #include <stdio.h> using namespace std; #define _USE_MATH_DEFINES #include <math.h> int main() { double nA; cin >> nA; double dA, dC; dA = M_PI * nA * nA; dC = 2 * M_PI * nA; printf("%.6f %.6f\n", dC, dA); // system("pause"); return 0; }
#include <iostream> #include <stdio.h> using namespace std; #define _USE_MATH_DEFINES #include <math.h> int main() { double nA; cin >> nA; double dA, dC; dA = M_PI * nA * nA; dC = 2 * M_PI * nA; printf("%.6f %.6f\n", dA, dC); // system("pause"); 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
62
#include <iostream> int main() { const double PI{3.141592}; double r; std::cin >> r; std::cout << PI * r * r << ' ' << 2 * PI * r << '\n'; }
#include <iostream> int main() { const double PI{3.141592653589}; double r; std::cin >> r; std::cout << std::fixed << PI * r * r << ' ' << 2 * PI * r << '\n'; }
[["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["+", 31, 16, 31, 16, 31, 16, 12, 343, 345, 348], ["+", 31, 16, 31, 16, 31, 16, 12, 343, 0, 349], ["+", 31, 16, 31, 16, 31, 16, 12, 343, 141, 22]]
1
48
#include <stdio.h> int main(void) { double r, s, l; scanf("%lf", &r); s = (double)r * (double)r * 3.14159265; l = 2 * (double)r * 3.14159265; printf("%.6f %.6f\n", s, l); return 0; }
#include <stdio.h> int main(void) { double r, s, l; scanf("%lf", &r); s = (double)r * (double)r * 3.14159265358979; l = 2 * (double)r * 3.14159265358979; printf("%.6f %.6f\n", s, l); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
66
#include <cstdio> #include <iostream> using namespace std; signed main() { int r; double pie = 3.14159263; cin >> r; printf("%.6f %.6f\n", r * r * pie, 2 * r * pie); return 0; }
#include <cstdio> #include <iostream> using namespace std; signed main() { double r; double pie = 3.14159265359; cin >> r; printf("%.6f %.6f\n", r * r * pie, 2 * r * pie); 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
49
#include <iomanip> #include <iostream> using namespace std; const double PI = 3.141592653589793238463; int main() { int r; cin >> r; cout << fixed << setprecision(6) << 2 * r * PI << " " << r * r * PI << endl; }
#include <iomanip> #include <iostream> using namespace std; const double PI = 3.141592653589793238463; int main() { double r; cin >> r; cout << fixed << setprecision(6) << r * r * PI << " " << 2 * r * PI << endl; }
[["-", 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, 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
54
#include <iomanip> #include <iostream> using namespace std; #define Pi 3.14159265358979323846 int main() { long double a; cin >> a; cout << fixed << setprecision(6) << 2 * a * Pi << ' ' << fixed << setprecision(6) << a * a * Pi << ' ' << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; #define Pi 3.14159265358979323846 int main() { long double a; cin >> a; cout << fixed << setprecision(6) << a * a * Pi << ' ' << fixed << setprecision(6) << 2 * a * Pi << endl; return 0; }
[["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
66
#define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> int main() { double r; scanf("%f", &r); printf("%f %f \n", (double)r * r * M_PI, (double)2.0 * r * M_PI); }
#define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> int main() { double r; scanf("%lf", &r); printf("%f %f \n", (double)r * r * M_PI, (double)2.0 * r * M_PI); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
51
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double x; cin >> x; cout << fixed; cout << setprecision(6) << 2 * x * M_PI << " " << x * x * M_PI << "\n"; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double x; cin >> x; cout << fixed; cout << setprecision(6) << x * x * M_PI << " " << 2 * x * M_PI << "\n"; }
[["-", 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
54
#include <iostream> using namespace std; #include <iomanip> #define _USE_MATH_DEFINES #include <cmath> int main() { long r; cin >> r; float area = 0; float circ = 0; double pi = M_PI; area = pi * r * r; circ = 2.0 * pi * r; cout << fixed << setprecision(6) << area << " " << circ << endl; return 0...
#include <iostream> using namespace std; #include <iomanip> #define _USE_MATH_DEFINES #include <cmath> int main() { double r; cin >> r; double area = 0; double circ = 0; double pi = M_PI; area = pi * r * r; circ = 2.0 * pi * r; cout << fixed << setprecision(6) << area << " " << circ << endl; retu...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
78
#include <cmath> #include <iomanip> #include <iostream> int main() { double r; std::cin >> r; std::cout << std::fixed << std::setprecision(5) << M_PI * r * r << 2 * M_PI * r << std::endl; return 0; }
#include <cmath> #include <iomanip> #include <iostream> int main() { double r; std::cin >> r; std::cout << std::fixed << std::setprecision(5) << M_PI * r * r << " " << 2 * M_PI * r << std::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
55
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double a, circ, area; cin >> a; circ = M_PI * a * 2; area = M_PI * (a * a); cout << fixed << setprecision(10); cout << circ << " " << area; return 0; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double a, circ, area; cin >> a; circ = M_PI * a * 2; area = M_PI * (a * a); cout << fixed << setprecision(10); cout << area << " " << circ; 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
67
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main(int argc, char *argv[]) { double r; cin >> r; cout << setprecision(6) << setiosflags(ios::showpoint) << setiosflags(ios::fixed) << M_PI * pow(r, 2) << " " << setprecision(5) << setiosflags(ios::showpoint) << setios...
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main(int argc, char *argv[]) { double r; cin >> r; cout << setprecision(6) << setiosflags(ios::showpoint) << setiosflags(ios::fixed) << M_PI * pow(r, 2) << " " << setprecision(6) << setiosflags(ios::showpoint) << setios...
[["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
93
#include <iomanip> #include <iostream> using namespace std; int main() { double pi = 3.141526; double r; cin >> r; cout << fixed << setprecision(6) << pi * r * r << " " << 2 * pi * r << endl; cin >> r; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double pi = 3.141592653589; double r; cin >> r; cout << fixed << setprecision(6) << pi * r * r << " " << 2 * pi * r << endl; cin >> r; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
60
#include <cmath> #include <cstdio> int main() { double r; scanf("%lf", &r); printf("%lf, %lf\n", r * r * M_PI, 2 * r * M_PI); return 0; }
#include <cmath> #include <cstdio> int main() { double r; scanf("%lf", &r); printf("%lf %lf\n", 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
46
#include <stdio.h> #define pi 3.1415926535897932 int main(void) { int r; scanf("%lf", &r); printf("%f %f\n", r * r * pi, r * 2 * pi); return 0; }
#include <stdio.h> #define pi 3.1415926535897932 int main(void) { double r; scanf("%lf", &r); printf("%f %f\n", r * r * pi, r * 2 * pi); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
48
#include <iostream> using namespace std; int main() { cout.precision(20); double PI = 3.14, r; cin >> r; cout << PI * r * r << " " << r * 2 * PI; }
#include <iostream> using namespace std; int main() { cout.precision(20); double PI = 3.14159265359, r; cin >> r; cout << PI * r * r << " " << r * 2 * PI; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
48
#include <iostream> using namespace std; int main() { double r, a, c; cin >> r; a = r * r * 3.141592; c = r * 2 * 3.141592; printf("%.8f %.8f\n", a, c); return 0; }
#include <iostream> using namespace std; int main() { double r, a, c; cin >> r; a = r * r * 3.1415926535897932; c = r * 2 * 3.1415926535897932; printf("%.15f %.15f\n", a, c); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 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 <iomanip> #include <iostream> #include <random> #include <string> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; #define FOR(i, a, b) for (int i = a; i < b; ++i) #define REP(i, n) for (int i = 0; i < n; ++i) typedef long long ll; typedef unsigned long l...
#include <algorithm> #include <iomanip> #include <iostream> #include <random> #include <string> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; #define FOR(i, a, b) for (int i = a; i < b; ++i) #define REP(i, n) for (int i = 0; i < n; ++i) typedef long long ll; typedef unsigned long l...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
169
#include <bits/stdc++.h> using namespace std; int main() { long double r; cin >> r; cout << setprecision(8) << fixed << r * r * 3.1415926 << ' ' << 2 * r * 3.1415926 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double r; cin >> r; cout << setprecision(8) << fixed << r * r * 3.14159265359 << ' ' << 2 * r * 3.14159265359 << 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
47
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int r; cin >> r; double l, s; l = 2.0 * r * M_PI; s = 1.0 * r * r * M_PI; printf("%f %f\n", l, s); }
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { double r; cin >> r; double l, s; l = 2.0 * r * M_PI; s = 1.0 * r * r * M_PI; printf("%f %f\n", s, l); }
[["-", 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, 2, 3, 4, 0, 21], ["-", 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, 22]]
1
58
#include <math.h> #include <stdio.h> int main() { double r; double circum, area; scanf("%d", &r); circum = 2 * M_PI * r; area = M_PI * r * r; printf("%.6f %.6f\n", circum, area); return 0; }
#include <math.h> #include <stdio.h> int main() { double r; double circum, area; scanf("%lf", &r); circum = 2 * M_PI * r; area = M_PI * r * r; printf("%.6f %.6f\n", area, circum); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 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, 22]]
1
59
#include <cstdio> #include <math.h> int main() { double x; scanf("%lf", x); printf("%lf %lf\n", x * x * M_PI, M_PI * x * 2); return 0; }
#include <cstdio> #include <math.h> int main() { double x; scanf("%lf", &x); printf("%lf %lf\n", x * x * M_PI, M_PI * x * 2); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
45
#include <iomanip> #include <iostream> #include <math.h> #include <stdlib.h> // const double PI = std::atan(1.0) * 4; double circle_area(double r) { return r * r * 3.1415; } double circle_circumference(double r) { return (r + r) * M_PI; } int main(void) { double r; int cout_precision = 6; char deli = ' '; ...
#include <iomanip> #include <iostream> #include <math.h> #include <stdlib.h> // const double PI = std::atan(1.0) * 4; double circle_area(double r) { return r * r * M_PI; } double circle_circumference(double r) { return (r + r) * M_PI; } int main(void) { double r; int cout_precision = 6; char deli = ' '; st...
[["-", 0, 14, 8, 9, 0, 37, 0, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 37, 0, 16, 12, 22]]
1
103