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 <algorithm> #include <iomanip> #include <iostream> #define PI 3.14159265358979 using namespace std; int main() { double r; cin >> r; cout << fixed << 2 * r * PI << " " << r * r * PI << endl; return 0; }
#include <algorithm> #include <iomanip> #include <iostream> #define PI 3.14159265358979 using namespace std; int main() { double r; cin >> r; cout << fixed << r * r * PI << " " << 2 * r * 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
51
#include <cstdio> int main() { double r, pi = 3.141592653589793238462643383279; scanf("%lf", r); printf("%lf %lf\n", r * r * pi, 2 * r * pi); }
#include <cstdio> int main() { double r, pi = 3.141592653589793238462643383279; scanf("%lf", &r); printf("%lf %lf\n", r * r * pi, 2 * r * pi); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
44
#include <cstdio> #include <iostream> using namespace std; #define PI 3.141592 int main(void) { double r; cin >> r; printf("%.5lf %.5lf\n", r * r * PI, 2 * r * PI); return 0; }
#include <cstdio> #include <iostream> using namespace std; #define PI 3.141592653589 int main(void) { double r; cin >> r; printf("%.5lf %.5lf\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(void) { double r, p; p = 3.1415926; scanf("%lf", &r); printf("%f %f\n", r * r * p, 2.0 * r * p); return 0; }
#include <stdio.h> int main(void) { double r, p; p = 3.141592653589793; scanf("%lf", &r); printf("%f %f\n", r * r * p, 2.0 * r * p); return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
51
#define PI 3.14159265359 #include <stdio.h> int main() { double r; double out1; double out2; scanf("%f", &r); out1 = r * r * PI; out2 = 2 * r * PI; printf("%f %f\n", out1, out2); return 0; }
#define PI 3.141592653589 #include <stdio.h> int main() { double r; double out1; double out2; scanf("%lf", &r); out1 = r * r * PI; out2 = 2 * r * PI; printf("%f %f\n", out1, out2); 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
61
#include <stdio.h> int main(void) { double pi = 3.141592653589; double r, c, a; // circumference, area scanf("%lf", &r); c = 2 * pi * r; a = pi * pi * r; printf("%lf %lf", a, c); return 0; }
#include <stdio.h> int main(void) { double pi = 3.141592653589; double r, c, a; // circumference, area scanf("%lf", &r); c = 2 * pi * r; a = pi * r * r; printf("%lf %lf", a, c); return 0; }
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22]]
1
62
#include <stdio.h> int main(void) { int radius; const double PI = 3.141592653589793; scanf("%d", &radius); printf("%f %f\n", radius * radius * PI, 2 * radius * PI); return 0; }
#include <stdio.h> int main(void) { double radius; const double PI = 3.141592653589793; scanf("%lf", &radius); printf("%f %f\n", radius * radius * PI, 2 * radius * 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
51
#include <bits/stdc++.h> using namespace std; int main() { int r; cin >> r; cout << fixed << r * r * M_PI << " " << 2 * r * M_PI << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { 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]]
1
44
#include <iostream> #define PI 3.1415926535897932384626433832 using namespace std; int main() { int r; cin >> r; cout.precision(100); cout << r * r * PI << ' ' << 2 * PI * r << endl; }
#include <iostream> #define PI 3.1415926535897932384 using namespace std; int main() { double r; cin >> r; cout.precision(100); cout << r * r * PI << ' ' << 2 * PI * r << endl; }
[["-", 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
49
#include <cstdio> #include <iostream> using namespace std; int main() { int r; double pi = 3.1415926535897; cin >> r; printf("%.8f %.8f\n", pi * r * r, 2 * pi * r); }
#include <cstdio> #include <iostream> using namespace std; int main() { double r, pi = 3.1415926535897; cin >> r; printf("%.8f %.8f\n", pi * r * r, 2 * pi * r); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
46
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef complex<double> P; typedef pair<int, int> pii; #define REP(i, n) for (ll i = 0; i < n; ++i) #define REPR(i, n) for (ll i = 1; i < n; ++i) #define FOR(i, a, b) for (ll i = a; i < b; ++i) #define ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef complex<double> P; typedef pair<int, int> pii; #define REP(i, n) for (ll i = 0; i < n; ++i) #define REPR(i, n) for (ll i = 1; i < n; ++i) #define FOR(i, a, b) for (ll i = a; i < b; ++i) #define ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 13], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 31, 13]]
1
156
#include <cstdio> #include <iostream> using namespace std; double pi = 3.141592653589; int main() { int r; cin >> r; printf("%f %f\n", r * r * pi, r * 2 * pi); return (0); }
#include <cstdio> #include <iostream> using namespace std; double pi = 3.141592653589; int main() { double r; cin >> r; printf("%.6f %.6f\n", r * r * pi, r * 2 * pi); return (0); }
[["-", 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
51
#include <stdio.h> int main() { double a, r; scanf("%lf", &r); a = 1.0 * 3.141592; printf("%f %f\n", a * r * r, 2 * a * r); return (0); }
#include <stdio.h> int main() { double a, r; scanf("%lf", &r); a = 1.0 * 3.141592653589; printf("%f %f\n", a * r * r, 2 * a * r); return (0); }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
54
#include <stdio.h> int main() { double a, r; scanf("%lf", &r); a = 1.0 * 3.141592; printf("%f %f\n", a * r * r, 2 * a * r); return (0); }
#include <stdio.h> int main() { double a, r; scanf("%lf", &r); a = 3.141592653589; printf("%f %f\n", a * r * r, 2 * a * r); return (0); }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
54
#include <iostream> using namespace std; #define PI 3.141592653589 int main() { double d; cin >> d; cout << d * d * PI << " " << 2.0 * d * PI << endl; return 0; }
#include <iostream> using namespace std; #define PI 3.1415926535897932 int main() { double d; cin >> d; cout << fixed << d * d * PI << " " << 2.0 * d * PI << endl; return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
45
#include <stdio.h> int main() { double r, n = 3.1415926; scanf("%lf", &r); printf("%f %f\n", r * r * n, r * 2 * n); return (0); }
#include <stdio.h> int main() { double r, n = 3.14159265358979; scanf("%lf", &r); printf("%f %f\n", r * r * n, r * 2 * n); return (0); }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
50
#include <stdio.h> int main() { int r; scanf("%d", &r); double p; p = 1.0 * 3.14159265; printf("%f %f\n", r * r * p, 2 * r * p); }
#include <stdio.h> int main() { double r; scanf("%lf", &r); double p; p = 1.0 * 3.141592653589; printf("%f %f\n", r * r * p, 2 * r * p); }
[["-", 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
50
#include <cmath> #include <cstdio> #define PI 3.141592653589793 int r; int main() { scanf("%d", &r); printf("%f %f\n", PI * r * r, 2.0 * PI * r); return 0; }
#include <cmath> #include <cstdio> #define PI 3.141592653589793 double r; int main() { scanf("%lf", &r); printf("%f %f\n", PI * r * r, 2.0 * PI * r); return 0; }
[["-", 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
49
#include <iostream> #include <stdio.h> int main() { double r; std::cin >> r; double pi = 3.141592653589793238462643383279; printf("%f %f\6", pi * r * r, 2 * pi * r); return 0; }
#include <iostream> #include <stdio.h> int main() { double r; std::cin >> r; double pi = 3.141592653589793238462643383279; printf("%f %f\n", pi * r * r, 2 * pi * r); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
47
#include <iomanip> #include <iostream> int main() { double r; std::cin >> r; std::cout << std::fixed << std::setprecision(6) << (r * r * 355.0 / 113.0) << " " << (2 * r * 355.0 / 113.0) << std::endl; // std::cout << (r * r * 1146408.0 /364913.0) << " " << (2 * r * 1146408.0 // /364913.0) <<...
#include <iomanip> #include <iostream> int main() { double r; std::cin >> r; std::cout << std::fixed << std::setprecision(6) << (r * r * 1285290289249.0 / 409120605684.0) << " " << (2 * r * 1285290289249.0 / 409120605684.0) << std::endl; return 0; }
[["-", 31, 16, 12, 23, 0, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 13], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 13]]
1
69
#include <cmath> #include <complex> #include <iomanip> #include <iostream> #include <vector> #define shosu(x) fixed << setprecision(x) using namespace std; int main() { cout << shosu(9); double pi = acos(-1); int r; cin >> r; cout << pi * r * r << ' ' << 2 * r * pi << endl; }
#include <cmath> #include <complex> #include <iomanip> #include <iostream> #include <vector> #define shosu(x) fixed << setprecision(x) using namespace std; int main() { cout << shosu(9); double pi = acos(-1); double r; cin >> r; cout << pi * r * r << ' ' << 2 * r * pi << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
68
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { int r; cin >> r; cout << fixed << setprecision(6); cout << r * r * M_PI << " " << 2 * r * M_PI << endl; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << fixed << setprecision(6); cout << r * r * M_PI << " " << 2 * r * M_PI << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
52
#include <cstdio> #include <iostream> using namespace std; int main() { double r; cin >> r; printf("%.6f %.6f\n", r * r * 355 / 113, 2 * r * 355 / 113); }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; cin >> r; printf("%.6f %.6f\n", r * r * 104348 / 33215, 2 * r * 104348 / 33215); }
[["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
45
#include <stdio.h> double r, i = 3.141592653589; int main() { scanf("%f", &r); printf("%f %f\n", i * r * r, 2 * r * i); return 0; }
#include <stdio.h> double r, i = 3.141592653589; int main() { scanf("%lf", &r); printf("%lf %f\n", i * r * r, 2 * r * i); return 0; }
[["-", 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> using namespace std; int main() { double r, are, circ; cin >> r; are = r * r * 3.141592653589; circ = 2 * r * 3.141592653589; cout << setprecision(8); cout << are << " " << circ << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r, are, circ; cin >> r; are = r * r * 3.141592653589; circ = 2 * r * 3.141592653589; cout << setprecision(10); cout << are << " " << circ << endl; return 0; }
[["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13]]
1
63
#include <stdio.h> #define M_PI 3.14159265358979323846 int main(void) { double num; scanf("%f", &num); printf("%f %f\n", num * num * M_PI, num * 2 * M_PI); }
#include <stdio.h> #define M_PI 3.14159265358979323846 int main(void) { double num; scanf("%lf", &num); printf("%f %f\n", num * num * M_PI, num * 2 * M_PI); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
45
#include <stdio.h> int main() { float a, b = 3.1415926; scanf("%lf", &a); printf("%f %f\n", a * a * b, a * 2 * b); }
#include <stdio.h> int main() { double a, b = 3.1415926535; scanf("%lf", &a); printf("%f %f\n", a * a * b, a * 2 * b); }
[["-", 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
45
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int r; cin >> r; printf("%.8f %.8f\n", r * r * acos(-1), 2 * acos(-1) * r); }
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { double r; cin >> r; printf("%.8f %.8f\n", r * r * acos(-1), 2 * acos(-1) * r); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
53
#include <cstdio> int main() { const double pi = 3.141592653589; int r; scanf("%d", &r); printf("%f %f\n", r * r * pi, r * 2 * pi); }
#include <cstdio> int main() { const double pi = 3.141592653589; double r; scanf("%lf", &r); printf("%f %f\n", r * r * pi, r * 2 * pi); }
[["-", 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 <iomanip> #include <iostream> using namespace std; int main() { double a; cin >> a; cout << scientific << setprecision(6) << a * a * 3.141592 << ' ' << 2 * a * 3.141592 << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double a; cin >> a; cout << fixed << setprecision(6) << a * a * 3.141592653589 << ' ' << 2 * a * 3.141592653589 << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 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> using namespace std; int main() { double a; cin >> a; cout << a * a * 3.141592 << ' ' << 2 * a * 3.141592 << endl; return 0; }
#include <iostream> using namespace std; int main() { double a; cin >> a; cout << fixed << a * a * 3.141592653589 << ' ' << 2 * a * 3.141592653589 << endl; return 0; }
[["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["-", 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
42
#include <iostream> #include <math.h> using namespace std; int main(void) { double r; cin >> r; cout.precision(6); cout << r * r * 3.14159265358979323846L << " " << r * 2.0 * 3.14159265358979323846L << endl; return 0; }
#include <iostream> #include <math.h> using namespace std; int main(void) { double r; cin >> r; cout.precision(15); cout << r * r * 3.14159265358979323846L << " " << r * 2.0 * 3.14159265358979323846L << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
52
#define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> int main(void) { int r; scanf("%d", &r); printf("%f %f\n", M_PI * r * r, 2 * M_PI * r); return 0; }
#define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%lf %lf\n", M_PI * r * r, 2.0 * M_PI * r); return 0; }
[["-", 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]]
1
49
#include <stdio.h> int main(void) { float r; float are, circ, pai; scanf("%lf", &r); pai = 3.141592653589; are = r * r * pai; circ = r * 2 * pai; printf("%f %f\n", are, circ); return 0; }
#include <stdio.h> int main(void) { double r, are, circ, pai; scanf("%lf", &r); pai = 3.141592653589; are = r * r * pai; circ = r * 2 * pai; printf("%f %f\n", are, circ); return 0; }
[["-", 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, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
64
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double x, y, pi; pi = 3.141592653589; scanf("%f", &r); x = r * r * pi; y = (r + r) * pi; printf("%f %f\n", x, y); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double x, y, pi; pi = 3.141592653589; scanf("%lf", &r); x = r * r * pi; y = (r + r) * pi; printf("%f %f\n", x, y); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
71
#include <stdio.h> int main(void) { float r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.141592653589, 2 * r * 3.141592653589); return (0); }
#include <stdio.h> int main(void) { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.141592653589, 2 * r * 3.141592653589); return (0); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
47
#include <stdio.h> int main() { int r; double answer_1; double answer_2; double pai = 3.141592653589; scanf("%d", &r); answer_1 = r * r * pai; answer_2 = (r + r) * pai; printf("%f %f\n", answer_1, answer_2); return 0; }
#include <stdio.h> int main() { double r; double answer_1; double answer_2; double pai = 3.141592653589; scanf("%lf", &r); answer_1 = r * r * pai; answer_2 = (r + r) * pai; printf("%f %f\n", answer_1, answer_2); return 0; }
[["-", 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
65
#include <stdio.h> static const double PI = 3.1415926; double Area(const double radius) { return radius * radius * PI; } double Circumference(const double radius) { return (radius * 2) * PI; } int main(void) { double radius; scanf("%lf", &radius); printf("%f %f\n", Area(radius), Circumference(radius)); re...
#include <stdio.h> static const double PI = 3.14159265358979; double Area(const double radius) { return radius * radius * PI; } double Circumference(const double radius) { return (radius * 2) * PI; } int main(void) { double radius; scanf("%lf", &radius); printf("%f %f\n", Area(radius), Circumference(radius))...
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]]
1
84
#include <cstdio> #include <iostream> using namespace std; int main() { double n; cin >> n; printf("%f %f\n", n * 3.14159265358979323 * 2, n * n * 3.14159265358979323); }
#include <cstdio> #include <iostream> using namespace std; int main() { double n; cin >> n; printf("%f %f\n", n * 3.14159265358979323 * n, 2 * n * 3.14159265358979323); }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13]]
1
41
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10009 // Tuvshee #include <iomanip> #include <iostream> #define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <cmath> #include <math.h> #include <queue> #include <string> #include <vector> using namespace std; #define I int #define D doubl...
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10009 // Tuvshee #include <iomanip> #include <iostream> #define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <cmath> #include <math.h> #include <queue> #include <string> #include <vector> using namespace std; #define I int #define D doubl...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
153
#include <iomanip> #include <iostream> using namespace std; int main() { int r; cin >> r; double pai = 3.14159265358979; double s = r * r * pai; double l = 2 * pai * r; cout << fixed << std::setprecision(6) << s << " " << l << std::endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; double pai = 3.14159265358979; double s = r * r * pai; double l = 2 * pai * r; cout << fixed << std::setprecision(6) << s << " " << l << std::endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
70
/* 半径 r の円の面積と円周の長さを求めるプログラムを作成して下さい。 */ #include <iomanip> #include <iostream> #include <math.h> using namespace std; int main(int argc, char const *argv[]) { double r; cin >> r; cout << fixed; cout << setprecision(6) << r * r * M_PI << " "; cout << setprecision(6) << r * M_PI << endl; return 0; }
/* 半径 r の円の面積と円周の長さを求めるプログラムを作成して下さい。 */ #include <iomanip> #include <iostream> #include <math.h> using namespace std; int main(int argc, char const *argv[]) { double r; cin >> r; cout << fixed; cout << setprecision(6) << r * r * M_PI << " "; cout << setprecision(6) << 2 * r * M_PI << endl; return 0; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
70
#include <cstdio> using namespace std; int main() { const double pi = 3.141592; double r; scanf("%lf", &r); printf("%.6lf %.6lf\n", pi * r * r, pi * r * 2); return 0; }
#include <cstdio> using namespace std; int main() { const double pi = 3.141592653589; double r; scanf("%lf", &r); printf("%.8lf %.8lf\n", pi * r * r, pi * r * 2); return 0; }
[["-", 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
54
#include <algorithm> #include <cstdlib> #include <iostream> #include <sstream> #include <string> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int main() { int r; cin >> r; cout.setf(ios::fixed); cout.precision(8); cout << M_PI * r * r << ' ' << M_PI * 2 * r << endl; ...
#include <algorithm> #include <cstdlib> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int main() { double r; cin >> r; cout.setf(ios::fixed); cout.precision(8); cout << M_PI * r * r << ' ' << M_...
[["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
72
#include <stdio.h> int main() { double r = 0; scanf("%lf", &r); printf("%0.6f %0.6f\n", r * r * 3.141592, r * 2 * 3.141592); return 0; }
#include <stdio.h> int main() { double r = 0; scanf("%lf", &r); printf("%0.6f %0.6f\n", r * r * 3.141592653589, r * 2 * 3.141592653589); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
46
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { double PI = 3.14159265358979323846; int r; cin >> r; cout.setf(ios::fixed, ios::floatfield); cout << r * r * PI << " " << r * 2 * PI << endl; return 0; }
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { double PI = 3.14159265358979323846; double r; cin >> r; cout.setf(ios::fixed, ios::floatfield); cout << r * r * PI << " " << r * 2 * PI << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
68
#include <iomanip> #include <iostream> int main(void) { const double PI = 3.1415926; double r; std::cin >> r; std::cout << std::fixed << std::setprecision(5); std::cout << PI * r * r << " " << 2 * PI * r << std::endl; return 0; }
#include <iomanip> #include <iostream> int main(void) { const double PI = 3.141592653589793; double r; std::cin >> r; std::cout << std::fixed << std::setprecision(5); std::cout << PI * r * r << " " << 2 * PI * r << std::endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
68
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int x; cin >> x; printf("%lf% lf\n", x * x * M_PI, x * 2 * M_PI); return 0; }
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <string> #include <vector> using namespace std; int main() { double x; cin >> x; printf("%lf% lf\n", x * x * M_PI, x * 2 * M_PI); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
52
#include <iostream> using namespace std; int main() { double r; double pi = 3.141592; cin >> r; cout.setf(ios::fixed, ios::floatfield); cout << r * r * pi << " " << 2 * pi * r << endl; return (0); }
#include <iostream> using namespace std; int main() { double r; double pi = 3.141592653589; cin >> r; cout.setf(ios::fixed, ios::floatfield); cout << r * r * pi << " " << 2 * pi * r << endl; return (0); }
[["-", 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 <cstdio> #include <iostream> using namespace std; int main() { double r, p = atan(1) * 4; double d, s; cin >> r; d = 2 * r * p; s = r * r * p; printf("%.6f %.6f", d, s); }
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int main() { double r, p = atan(1) * 4; double d, s; cin >> r; d = 2 * r * p; s = r * r * p; printf("%.6f %.6f", s, d); }
[["-", 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 <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << setiosflags(ios::fixed); cout << r * r * 3.141598653589 << " " << 2 * r * 3.141598653589 << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { double r; cin >> r; cout << setiosflags(ios::fixed); cout << r * r * 3.141592653589 << " " << 2 * r * 3.141592653589 << endl; return 0; }
[["-", 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
53
#include <stdio.h> int main() { const int pi = 3.141592653589; double r; scanf("%lf", &r); printf("%f %f\n", r * r * pi, 2 * r * pi); return 0; }
#include <stdio.h> int main() { const double pi = 3.141592653589; double r; scanf("%lf", &r); printf("%f %f\n", r * r * pi, 2 * r * pi); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
50
#include <iostream> #include <stdio.h> using namespace std; int main() { double r; float pi = 3.141592653589; cin >> r; printf("%.6f %.6f\n", r * r * pi, 2 * r * pi); }
#include <iostream> #include <stdio.h> using namespace std; int main() { double r; double pi = 3.141592653589; cin >> r; printf("%.6f %.6f\n", r * r * pi, 2 * r * pi); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
46
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; int main() { int r; double a, b; cin >> r; a = r * r * 3.141592653589; b = 2 * r * 3.141592653589; printf("%.6f %.6f\n", a, b); }
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; int main() { double r; double a, b; cin >> r; a = r * r * 3.141592653589; b = 2 * r * 3.141592653589; printf("%.6f %.6f\n", a, b); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
56
#define _USE_MATH_DEFINES #include <cmath> #include <iostream> using namespace std; int main() { double r, func, hoge; cin >> r; func = r * 2 * M_PI; hoge = r * r * M_PI; cout << fixed << func << " " << hoge << endl; return 0; }
#define _USE_MATH_DEFINES #include <cmath> #include <iostream> using namespace std; int main() { double r, func, hoge; cin >> r; func = r * 2 * M_PI; hoge = r * r * M_PI; cout << fixed << hoge << " " << func << endl; return 0; }
[["-", 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
60
#include <math.h> #include <stdio.h> int main(void) { double r; scanf("%d", &r); printf("%f %f\n", r * r * M_PI, 2 * r * M_PI); return 0; }
#include <stdio.h> #include <math.h> int main() { double r; scanf("%lf", &r); printf("%f %f\n", r * r * M_PI, 2 * r * M_PI); return 0; }
[["-", 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, 135, 0, 138], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 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" using namespace std; #define PI 3.14159265358; int main() { double r, x, y; cin >> r; x = 2 * r * PI; y = r * r * PI; cout << fixed << x << " " << fixed << y << endl; }
#include "iostream" using namespace std; #define PI 3.14159265358979 int main() { double r, x, y; cin >> r; x = 2 * r * PI; y = r * r * PI; cout << fixed << y << " " << fixed << x << endl; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 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
60
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double menseki, ensyu; cin >> r; menseki = r * r * 3.141592; ensyu = 2 * r * 3.141592; printf("%9.6lf %9.6lf\n", menseki, ensyu); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { double r; double menseki, ensyu; cin >> r; menseki = r * r * 3.141592653589; ensyu = 2 * r * 3.141592653589; printf("%10.6lf %10.6lf\n", menseki, ensyu); return 0; }
[["-", 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
57
#include <math.h> #include <stdio.h> int main() { float r; scanf("%f", &r); printf("%0.6f %0.6f\n", r * r * M_PI, 2.0 * r * M_PI); }
#include <math.h> #include <stdio.h> int main() { double r; scanf("%lf", &r); printf("%0.6lf %0.6lf\n", r * r * M_PI, 2.0 * r * M_PI); }
[["-", 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
43
#include <cstdio> #define PAI 3.14159265359 int main() { double x; scanf("%lf", &x); printf("%f %f\n", 2 * x * PAI, x * x * PAI); return 0; }
#include <cstdio> #define PAI 3.14159265359 int main() { double x; scanf("%lf", &x); printf("%f %f\n", x * x * PAI, 2 * x * PAI); return 0; }
[["-", 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 <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, s, e) for (int i = (s); i < (e); i++) #define REPI(...
#include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, s, e) for (int i = (s); i < (e); i++) #define REPI(...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
154
#include <iomanip> #include <iostream> #define M_PI 3.141592653589 using namespace std; int main(int argc, const char *argv[]) { // insert code here... int r = 0; cin >> r; cout << fixed << setprecision(6) << M_PI * r * r << " " << 2 * M_PI * r << endl; return 0; }
#include <iomanip> #include <iostream> #define M_PI 3.141592653589 using namespace std; int main(int argc, const char *argv[]) { // insert code here... double r = 0.0f; cin >> r; cout << fixed << setprecision(6) << M_PI * r * r << " " << 2 * M_PI * r << endl; return 0; }
[["-", 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 <iomanip> #include <iostream> using namespace std; int main() { double a, x, y; cin >> a; x = a * a * 3.141592653589; y = a * 2 * 3.141592653589; cout << fixed << setprecision(6); cout << x << "" << y << endl; }
#include <iomanip> #include <iostream> using namespace std; int main() { double a, x, y; cin >> a; x = a * a * 3.141592653589; y = a * 2 * 3.141592653589; cout << fixed << setprecision(6); cout << x << " " << y << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
61
#include <cstdio> using namespace std; int main() { double r; scanf("%lf", &r); printf("%f %f\n", r * 2 * 3.141592653589, r * r * 3.141592653589); return 0; }
#include <cstdio> using namespace std; int main() { double r; scanf("%lf", &r); printf("%f %f\n", r * r * 3.141592653589, r * 2 * 3.141592653589); return 0; }
[["-", 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
48
#include <iomanip> #include <iostream> #define PI 3.141592653589 using namespace std; int main(void) { double r; cin >> r; cout << fixed << setprecision(6) << 2 * r * PI << " " << PI * r * r << endl; return 0; }
#include <iomanip> #include <iostream> #define PI 3.141592653589 using namespace std; int main(void) { double r; cin >> r; cout << fixed << setprecision(6) << PI * r * r << " " << 2 * r * PI << endl; return 0; }
[["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, ...
1
55
#include <iomanip> #include <iostream> using namespace std; #define PAI 3.141592 int main() { double r; double menseki, ensyu; cin >> r; menseki = PAI * r * r; ensyu = 2 * PAI * r; cout << setprecision(6) << fixed << menseki << " " << ensyu << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; #define PAI 3.14159265359 int main() { double r; double menseki, ensyu; cin >> r; menseki = PAI * r * r; ensyu = 2 * PAI * r; cout << setprecision(6) << fixed << menseki << " " << ensyu << endl; return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
67
#include <algorithm> #include <functional> #include <iostream> #define mp make_pair #define pb push_back #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<bool> vb; typedef vector<int> vi; ty...
#include <algorithm> #include <functional> #include <iostream> #define mp make_pair #define pb push_back #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<bool> vb; typedef vector<int> vi; ty...
[["-", 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
169
//============================================================================ // Name : pra.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <cstdi...
//============================================================================ // Name : pra.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <cstdi...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
54
#include <stdio.h> int main(void) { double p = 3.1415926535898; double r; scanf("%lf", &r); printf("%f %f\n", p * p * r, 2 * p * r); return 0; }
#include <stdio.h> int main(void) { double p = 3.1415926535898; double r; scanf("%lf", &r); printf("%f %f\n", p * r * r, 2 * p * r); return 0; }
[["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]]
1
50
r = gets.chomp.to_i puts "#{r * r * Math::PI} #{2 * r * Math::PI}"
r = gets.chomp.to_f puts "#{r * r * Math::PI} #{2.0 * r * Math::PI}"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 0, 557, 0, 284, 0, 738, 31, 738, 31, 612], ["+", 0, 557, 0, 284, 0, 738, 31, 738, 31, 531]]
4
29
#coding : utf-8 r = gets.to_i pi = Math::PI print r*r*pi," ",2*r*pi,"\n"
#coding : utf-8 r = gets.to_f pi = Math::PI print r*r*pi," ",2*r*pi,"\n"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
31
r = gets.chomp.to_i puts "#{sprintf("%.6f",r*r*Math::PI)} #{sprintf("%.6f",r*2*Math::PI)}"
r = gets.chomp.to_f puts "#{sprintf("%.6f",r*r*Math::PI)} #{sprintf("%.6f",r*2*Math::PI)}"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
43
# coding: utf-8 r = gets.to_f printf("%.5f %.5f\n", 2 * r * Math::PI, r * r * Math::PI)
# coding: utf-8 r = gets.to_f printf("%.5f %.5f\n", r * r * Math::PI, 2 * r * Math::PI)
[["-", 0, 652, 3, 4, 0, 738, 31, 738, 31, 612], ["+", 0, 652, 3, 4, 0, 738, 31, 738, 31, 22], ["-", 0, 652, 3, 4, 0, 738, 31, 738, 31, 22], ["+", 0, 652, 3, 4, 0, 738, 31, 738, 31, 612]]
4
29
# coding: utf-8 r = gets.to_i men = r * r * Math::PI syu = 2 * r * Math::PI puts sprintf("%.6f %.6f", men, syu)
# coding: utf-8 r = gets.to_f men = r * r * Math::PI syu = 2 * r * Math::PI puts sprintf("%.6f %.6f", men, syu)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
35
t=Math::PI*r=gets.to_i puts [t*r,t*2]*" "
t=Math::PI*r=gets.to_f puts [t*r,t*2]*" "
[["-", 0, 662, 12, 738, 12, 662, 12, 652, 735, 22], ["+", 0, 662, 12, 738, 12, 662, 12, 652, 735, 22]]
4
25
r = gets.to_i puts "#{Math::PI * r * r} #{2 * r * Math::PI}"
r = gets.to_f puts "#{Math::PI * r * r} #{2 * r * Math::PI}"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
27
r = gets.to_i area = r*r*Math::PI circumference = 2*r*Math::PI puts "#{area.round(6)} #{circumference.round(6)}"
r = gets.to_f area = r*r*Math::PI circumference = 2*r*Math::PI puts "#{area.round(6)} #{circumference.round(6)}"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
43
r = gets.to_i puts [r * r * Math::PI, r * 2 * Math::PI].join(' ')
r = gets.to_f puts [r * r * Math::PI, r * 2 * Math::PI].join(' ')
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
30
r = gets.to_i print r*r*Math::PI," ",r*2*Math::PI,"\n"
r = gets.to_f print r*r*Math::PI," ",r*2*Math::PI,"\n"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
29
r = gets.to_f pi = 3.141592 puts "#{r*r*pi} #{r*2*pi}"
r = gets.to_f pi = 3.141592653589793 puts "#{r*r*pi} #{r*2*pi}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531]]
4
26
r=gets.to_i m=r*r*Math::PI n=2*r*Math::PI printf("%.6f %.6f\n",m,n)
r=gets.to_f m=r*r*Math::PI n=2*r*Math::PI printf("%.6f %.6f\n",m,n)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
34
#coding utf-8 r = gets.to_i PI = Math::PI puts "#{sprintf('%.6f',(r**2)*PI)} #{sprintf('%.6f',2*r*PI)}"
r = gets.to_f PI = Math::PI puts "#{sprintf('%.6f',(r**2)*PI)} #{sprintf('%.6f',2*r*PI)}"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
45
#!/usr/bin/ruby r=gets.to_i printf("%.9f %.9f\n",Math::PI*r**2,Math::PI*r*2)
#!/usr/bin/ruby r=gets.to_f printf("%.9f %.9f\n",Math::PI*r**2,Math::PI*r*2)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
29
r = gets.to_i pi = Math.acos(-1) puts ["%.7f" % (pi*r*r),"%.7f" % (2*pi*r)].join(" ")
r = gets.to_f pi = Math.acos(-1) puts ["%.7f" % (pi*r*r),"%.7f" % (2*pi*r)].join(" ")
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
47
r = gets.to_i puts [r ** 2 * Math::PI, r * 2 * Math::PI]*" "
r = gets.to_f puts [r ** 2 * Math::PI, r * 2 * Math::PI]*" "
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
27
r=gets.to_i printf("%.6f %.6f\n",Math::PI*r**2,2*Math::PI*r)
r=gets.to_f printf("%.5f %.5f\n",Math::PI*r**2,2*Math::PI*r)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
28
#!/usr/local/bin/ruby include Math line=gets r=line.to_i s=r**2*PI l=2*PI*r printf("%.6f %.6f\n",s,l)
#!/usr/local/bin/ruby include Math line=gets r=line.to_f s=r**2*PI l=2*PI*r printf("%.6f %.6f\n",s,l)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
36
#!/usr/local/bin/ruby r = gets.to_f printf("%.6f %.6f\n",r*2*Math::PI,r**2*Math::PI)
#!/usr/local/bin/ruby r = gets.to_f printf("%.6f %.6f\n",r**2*Math::PI,r*2*Math::PI)
[["-", 0, 652, 3, 4, 0, 738, 31, 738, 17, 48], ["+", 0, 652, 3, 4, 0, 738, 31, 738, 17, 578], ["-", 0, 652, 3, 4, 0, 738, 31, 738, 17, 578], ["+", 0, 652, 3, 4, 0, 738, 31, 738, 17, 48]]
4
29
import java.io.*; import java.util.*; class Main { static final int MOD = 1000000007; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int m = Integer.parseInt(line.substring(0, line.ind...
import java.io.*; import java.util.*; class Main { static final int MOD = 1000000007; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); long m = Integer.parseInt(line.substring(0, line.in...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
169
#include <stdio.h> long long int pw(long long int x, long long int n, long long int MOD) { long long int res = 1; ; if (n > 0) { res = pw(x, n / 2, MOD); if (n % 2 == 0) res = (res * res) % MOD; else res = (((res * res) % MOD) * x) % MOD; } return res; } int main() { long long int m;...
#include <stdio.h> long long int pw(long long int x, long long int n, long long int MOD) { long long int res = 1; if (n > 0) { res = pw(x, n / 2, MOD); if (n % 2 == 0) res = (res * res) % MOD; else res = (((res * res) % MOD) * x) % MOD; } return res; } int main() { long long int m; l...
[["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
0
142
#include <stdio.h> long long int EasyPow(long long int x, long long int y, long long int z); int main() { long long int m; long long int n; scanf("%lld %lld", &m, &n); printf("%lld\n", EasyPow(m, n, 1000000007)); return 0; } long long int EasyPow(long long int x, long long int y, long long int z) { //...
#include <stdio.h> long long int EasyPow(long long int x, long long int y, long long int z); int main() { long long int m; long long int n; scanf("%lld %lld", &m, &n); printf("%lld\n", EasyPow(m, n, 1000000007)); return 0; } long long int EasyPow(long long int x, long long int y, long long int z) { //...
[["-", 64, 9, 0, 57, 15, 23, 0, 16, 17, 67], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 109]]
0
166
#include <algorithm> #include <iostream> #include <string> #include <vector> #define int long long using namespace std; signed main() { int m, n, mod = 10000007; cin >> m >> n; int k = 1; while (n) { if (n % 2 == 1) { k *= m; n--; } m *= m; n /= 2; k %= mod; m %= mod; } c...
#include <algorithm> #include <iostream> #include <string> #include <vector> #define int long long using namespace std; signed main() { int m, n, mod = 1000000007; cin >> m >> n; int k = 1; while (n) { if (n % 2 == 1) { k *= m; n--; } m *= m; n /= 2; k %= mod; m %= mod; } ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
86
#include <cctype> #include <cstdio> #include <utility> #include <vector> using namespace std; const auto gcu = getchar_unlocked; const auto pcu = putchar_unlocked; #define _T template <typename T> #define _HT template <typename H, typename... T> #define _il inline #define _sc _il bool scan _T T in(int c) { T n = 0; ...
#include <cctype> #include <cstdio> #include <utility> #include <vector> using namespace std; const auto gcu = getchar_unlocked; const auto pcu = putchar_unlocked; #define _T template <typename T> #define _HT template <typename H, typename... T> #define _il inline #define _sc _il bool scan _T T in(int c) { T n = 0; ...
[["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]]
1
645
#include <fstream> #include <iostream> #include <math.h> #include <stdio.h> #include <string.h> using namespace std; typedef int Int; const Int M = 1000000007; Int power(Int x, Int n) { Int res; if (n == 0) return 1; res = power(x * x % M, n / 2); if ((n & 1) != 0) { res = res * x % M; } return re...
#include <fstream> #include <iostream> #include <math.h> #include <stdio.h> #include <string.h> using namespace std; typedef long Int; const Int M = 1000000007; Int power(Int x, Int n) { Int res; if (n == 0) return 1; res = power(x * x % M, n / 2); if ((n & 1) != 0) { res = res * x % M; } return r...
[["-", 36, 36, 36, 36, 0, 30, 0, 134, 39, 40], ["+", 36, 36, 0, 30, 0, 134, 39, 86, 0, 96]]
1
124
#include <stdio.h> #include <string.h> long long int d = 1000000007ll; long long int pow(int m, long long int n) { long long int res; if (n == 0) return 1; res = pow((m * m) % d, n / 2); if (n % 2) { res = (res * m) % d; } return res; } int main(void) { long long int n; int m; scanf("%d%lld...
#include <stdio.h> #include <string.h> long long int d = 1000000007ll; long long int pow(long long int m, long long int n) { long long int res; if (n == 0) return 1; res = pow((m * m) % d, n / 2); if (n % 2) { res = (res * m) % d; } return res; } int main(void) { long long int n; int m; sca...
[["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
123
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <list> #include <map> #include <queue> #include <sstream> #include <stack> #include <utility> #include <vector> #define F first #define S second #define FOR(i, n) for (int i = 0;...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <list> #include <map> #include <queue> #include <sstream> #include <stack> #include <utility> #include <vector> #define F first #define S second #define FOR(i, n) for (int i = 0;...
[["+", 31, 16, 31, 2, 3, 4, 0, 16, 17, 109], ["+", 31, 16, 31, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 16, 31, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 16, 31, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
210
#include <cstdio> #include <iostream> using namespace std; long pow(int n, int m); int main() { int n, m; cin >> m >> n; cout << pow(n, m) << endl; } long pow(int n, int m) { int x = m; long ans = 1; int m2 = m * m; while (n > 0) { if (n & 1) ans = ans * x; x = x * x; n >>= 1; ...
#include <cstdio> #include <iostream> using namespace std; long pow(int n, int m); int main() { int n, m; cin >> m >> n; cout << pow(n, m) << endl; } long pow(int n, int m) { long long x = m; long ans = 1; int m2 = m * m; while (n > 0) { if (n & 1) ans = ans * x; x = (x * x) % 10000000...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
113
#include <iostream> #define P 1000000007 using namespace std; typedef long long ll; int mod_power(ll, int); int main() { int m, n; cin >> m >> n; cout << mod_power((ll)m, n) << endl; return 0; } int mod_power(ll x, int y) { ll res = 1; for (int i = 0; i <= 30; i++) { if (y & (1 << i)) res = res ...
#include <iostream> #define P 1000000007 using namespace std; typedef long long ll; int mod_power(ll, int); int main() { int m, n; cin >> m >> n; cout << mod_power((ll)m, n) << endl; return 0; } int mod_power(ll x, int y) { ll res = 1; for (int i = 0; i <= 30; i++) { if (y & (1 << i)) res = res ...
[["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]]
1
117
#include <iostream> #define P 1000000007 using namespace std; typedef long long ll; int mod_power(ll, int); int main() { int m, n; cin >> m >> n; cout << mod_power((ll)m, n) << endl; return 0; } int mod_power(ll x, int y) { ll res = 1; for (int i = 0; i <= 30; i++) { if (y & (1 << i)) res = res ...
#include <iostream> #define P 1000000007 using namespace std; typedef long long ll; int mod_power(ll, int); int main() { int m, n; cin >> m >> n; cout << mod_power((ll)m, n) << endl; return 0; } int mod_power(ll x, int y) { ll res = 1; for (int i = 0; i <= 30; i++) { if (y & (1 << i)) res = res ...
[["+", 8, 9, 0, 1, 0, 11, 31, 23, 0, 24], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 31, 23, 0, 25], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 132]]
1
117
/** * @brief 剰余演算のテストプログラム * @date 2016/08/06 */ // ******************************************************************************** // 必要なヘッダファイルのインクルード // ******************************************************************************** #include <cstdint> #include <iostream> #include <type_traits> // **********...
/** * @brief 剰余演算のテストプログラム * @date 2016/08/06 */ // ******************************************************************************** // 必要なヘッダファイルのインクルード // ******************************************************************************** #include <cstdint> #include <iostream> #include <type_traits> // **********...
[["+", 0, 37, 0, 41, 75, 41, 64, 2, 63, 22], ["+", 0, 41, 75, 41, 64, 2, 3, 4, 0, 24], ["-", 0, 41, 75, 41, 64, 16, 12, 2, 63, 22], ["-", 75, 41, 64, 16, 12, 2, 3, 4, 0, 24]]
1
644