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 <bitset> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; using lint = long long; using vi = vector<int>; using vl = ve...
#include <algorithm> #include <bitset> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; using lint = long long; using vi = vector<int>; using vl = ve...
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
231
#include <algorithm> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define all(obj) (obj).begin(), (obj).end() using namespace std; typedef long long ll; int main() { int L; cin >> L; double ans = pow((double)L / 3.0, 3.0); cout << ans << endl; }
#include <algorithm> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define all(obj) (obj).begin(), (obj).end() using namespace std; typedef long long ll; int main() { int L; cin >> L; double ans = pow((double)L / 3.0, 3.0); cout << fixed << ans << endl; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
61
#include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { long long int l; cin >> l; cout << setprecision(30) << (double)(l * l * l / 27) << endl; }
#include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { double l; cin >> l; cout << setprecision(30) << (double)(l * l * l / 27) << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
51
// Name-Deepesh Bhatt // Institute-IIT Dhanbad #include <bits/stdc++.h> using namespace std; typedef long long ll; ll gcd(ll a, ll b) { if (b == 0) return a; else return gcd(b, a % b); } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } ll power(ll a, ll n, ll m) { if (n == 0) return 1; ll p = powe...
// Name-Deepesh Bhatt // Institute-IIT Dhanbad #include <bits/stdc++.h> using namespace std; typedef long long ll; ll gcd(ll a, ll b) { if (b == 0) return a; else return gcd(b, a % b); } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } ll power(ll a, ll n, ll m) { if (n == 0) return 1; ll p = powe...
[["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151]]
1
193
#include <iostream> #include <stdio.h> using namespace std; int main() { int n; cin >> n; double num = 0; num = n; num = num / 3; num = num * 3; printf("%0.12f", num); return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { int n; cin >> n; double num = 0; num = n; num = num / 3; num = num * num * num; printf("%0.12f", num); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
54
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << pow(l / 3, 3) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << std::fixed << pow(l / 3, 3) << endl; return 0; }
[["+", 0, 16, 31, 16, 31, 16, 12, 343, 345, 348], ["+", 0, 16, 31, 16, 31, 16, 12, 343, 0, 349], ["+", 0, 16, 31, 16, 31, 16, 12, 343, 141, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
35
// ここから「ここまでテンプレ」までテンプレ #define NOMINMAX #define TEST_MODE true #define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include "bits/stdc++.h" #include <random> #include <regex> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rep2(i, a, b) for (int i = (a); i < (int)(b); ++i) #de...
// ここから「ここまでテンプレ」までテンプレ #define NOMINMAX #define TEST_MODE true #define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include "bits/stdc++.h" #include <random> #include <regex> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rep2(i, a, b) for (int i = (a); i < (int)(b); ++i) #de...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
1,264
#include <cstdio> using namespace std; int main() { double l; scanf("%lf", &l); printf("%ld\n", l / 3 * l / 3 * l / 3); return 0; }
#include <cstdio> using namespace std; int main() { double l; scanf("%lf", &l); printf("%lf\n", l / 3 * l / 3 * l / 3); 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 <algorithm> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; int main() { ios_base::s...
#include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; int main() { ios_base::s...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
91
#include <bits/stdc++.h> using namespace std; int main() { int L; double side; cin >> L; side = L / 3; printf("%.7f\n", side * side * side); }
#include <bits/stdc++.h> using namespace std; int main() { int L; double side; cin >> L; side = (double)L / 3; printf("%.7f\n", side * side * side); }
[["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25]]
1
42
#include <bits/stdc++.h> using namespace std; #define mp make_pair #define pb push_back #define all(x) x.begin(), x.end() #define fi first; #define se second; #define print(x, y) (cout << (x) << (y)) #define inf INT_MAX #define boost \ ios_base::sync_wi...
#include <bits/stdc++.h> using namespace std; #define mp make_pair #define pb push_back #define all(x) x.begin(), x.end() #define fi first; #define se second; #define print(x, y) (cout << (x) << (y)) #define inf INT_MAX #define boost \ ios_base::sync_wi...
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
192
L = int(input().strip()) print(L/3**3)
L = int(input().strip()) print((L/3)**3)
[["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25]]
5
20
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 3e5 + 5; int32_t main() { ll n; cin >> n; n /= 3; ll ans = n * n * n; cout << fixed << setprecision(6) << double(ans); return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 3e5 + 5; int32_t main() { long double n; cin >> n; n /= 3; long double ans = n * n * n; cout << fixed << setprecision(6) << double(ans); return 0; }
[["-", 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
60
#include <bits/stdc++.h> using namespace std; bool KBjudge(string x) { string x_ = x; reverse(x.begin(), x.end()); return (x_ == x); } int main() { double L; cin >> L; double a = L / 3; a = pow(a, 3); printf("%.f", a); // cout << a << endl; return 0; }
#include <bits/stdc++.h> using namespace std; bool KBjudge(string x) { string x_ = x; reverse(x.begin(), x.end()); return (x_ == x); } int main() { double L; cin >> L; double a = L / 3; a = pow(a, 3); printf("%.6f", a); // cout << a << endl; return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
83
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define PB...
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define PB...
[["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
109
#include <bits/stdc++.h> using namespace std; #define vi vector<int> #define pi pair<int, int> #define ll long long #define rep(i, a, b) for (int i = int(a); i <= int(b); i++) #define repv(vec, v) for (v = (vec).begin(); v != (vec).end(); v++) #define sz(vec) (int)(vec).size() #define PB push_back #define F first() #de...
#include <bits/stdc++.h> using namespace std; #define vi vector<int> #define pi pair<int, int> #define ll long long #define rep(i, a, b) for (int i = int(a); i <= int(b); i++) #define repv(vec, v) for (v = (vec).begin(); v != (vec).end(); v++) #define sz(vec) (int)(vec).size() #define PB push_back #define F first() #de...
[["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
79
//==========//============================================================================ // Name : Hello5.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ ...
//==========//============================================================================ // Name : Hello5.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ ...
[["-", 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
82
#include <stdio.h> int main() { long n; double f; scanf("%ld", &n); f = n / 3 * n / 3 * n / 3; printf("%lf\n", f); return 0; }
#include <stdio.h> int main() { long n; double f; scanf("%ld", &n); f = n / 3.0 * n / 3 * n / 3; printf("%lf\n", f); return 0; }
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 13]]
0
51
l =input(); l = int(l); print((L/3)^3)
l = input(); l = int(l); print((l/3)**3)
[["-", 3, 4, 0, 657, 31, 23, 0, 657, 31, 22], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 140], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 578]]
5
23
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { int L = 0; Scanner sc = new Scanner(System.in); L = sc.nextInt(); double X = (L / 3) * (L / 3) * (L / 3); String max = BigDecimal.valueOf(X).toPlainString(); System.out.println...
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { double L = 0; Scanner sc = new Scanner(System.in); L = sc.nextInt(); double X = (L / 3) * (L / 3) * (L / 3); String max = BigDecimal.valueOf(X).toPlainString(); System.out.prin...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512]]
3
105
#include <bits/stdc++.h> using namespace std; #define all(c) c.begin(), c.end() typedef long long ll; const int N = 0; int n, k, x, t, a, b; string s; vector<int> v; int main() { cin >> n; printf("%0.9f", pow(n / 3, 3)); return 0; }
#include <bits/stdc++.h> using namespace std; #define all(c) c.begin(), c.end() typedef long long ll; const int N = 0; int n, k, x, t, a, b; string s; vector<int> v; int main() { cin >> n; printf("%0.9f", pow(n / 3.0, 3)); return 0; }
[["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 13]]
1
74
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; int main() { int L; double s; cin >> L; s = pow(L / 3, 3); printf("%.7f\n", s); return 0; }
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; int main() { double L; double s; cin >> L; s = pow(L / 3, 3); printf("%.7f\n", s); 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 <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; int main() { int L; cin >> L; double dim = L / 3; cout << fixed; cout << setprecision(7); cout << dim * dim * dim; return 0; }
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; int main() { int L; cin >> L; double dim = L / 3.0; cout << fixed; cout << setprecision(7); cout << dim * dim * dim; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
62
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); cout.precision(12); int L; cin >> L; double ans = pow(L / 3, 3); cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); cout.precision(18); int L; cin >> L; double ans = pow(L / 3.0, 3); cout << ans << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
61
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int i = 0, j = 0, k = 0, ans = 0; int l; cin >> l; double a; a = l / 3; printf("%.12f\n", a * a * a); }
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int i = 0, j = 0, k = 0, ans = 0; int l; cin >> l; double a; a = l; printf("%.12f\n", a * a * a / 27); }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
62
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double s; // s = L/3; double V; V = L * L * L / 27; printf("%.12f\n", V); }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double s; // s = L/3; double V; V = L * L * L / 27; printf("%f\n", V); }
[["-", 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
46
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double x = l / 3; double ans = pow(x, 3); printf("%.10f\n", ans); }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; double x = l / 3; double ans = pow(x, 3); printf("%.10f\n", ans); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
46
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double m = n * 3 * 3 / 27; cout << fixed << setprecision(11) << m; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double m = n * 3 * 3 / 27; cout << fixed << setprecision(11) << m * m * m; return 0; }
[["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22]]
1
44
#include <iostream> using namespace std; int main() { // your code goes here int n; scanf("%d", &n); printf("%.12f\n", double((n * n * n) / 27)); return 0; }
#include <iostream> using namespace std; int main() { // your code goes here int n; scanf("%d", &n); printf("%.12f\n", (double)n * n * n / 27); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 2, 63, 40], ["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 25], ["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
50
/* とりあえずソースコード見る前に推し見ていってください。 ` ....J&wZTUUWc `...JZY"!~-._<~~~~_d' ` ..-Z"=~`..._~___::...
/* とりあえずソースコード見る前に推し見ていってください。 ` ....J&wZTUUWc `...JZY"!~-._<~~~~_d' ` ..-Z"=~`..._~___::...
[["-", 3, 4, 0, 2, 3, 4, 0, 16, 17, 85], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
1,397
#ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #includ...
#ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #includ...
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
477
L=int(input()) print(L/27)
L=int(input()) print(L**3/27)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]]
5
14
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int l; cin >> l; cout << fixed << setprecision(10); cout << l * l * l / 27 << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int l; cin >> l; cout << fixed << setprecision(10); cout << (double)l * l * l / 27 << endl; }
[["+", 12, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 12, 16, 31, 16, 31, 16, 31, 74, 0, 25]]
1
45
#include <bits/stdc++.h> using namespace std; int main() { double N; cin >> N; cout << setprecision(6) << N * N * N / 27 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double N; cin >> N; cout << setprecision(60) << N * N * N / 27 << endl; }
[["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
36
#include <bits/stdc++.h> using namespace std; int main() { double N; cin >> N; cout << N * N * N / 27 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double N; cin >> N; cout << setprecision(20) << N * N * N / 27 << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
31
#include "bits/stdc++.h" using namespace std; #define sp(x) cout << setprecision(x); #define all(a) (a).begin(), (a).end() #define inf 10000000 #define linf INT64_MAX * 0.99 #define lint long long #define FOR(i, a, b) for (lint i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define yes "Yes" #define no "No" #d...
#include "bits/stdc++.h" using namespace std; #define sp(x) cout << setprecision(x); #define all(a) (a).begin(), (a).end() #define inf 10000000 #define linf INT64_MAX * 0.99 #define lint long long #define FOR(i, a, b) for (lint i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define yes "Yes" #define no "No" #d...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
169
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; printf("%.12f\n", x * x * x / 27); }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; printf("%.12f\n", (double)x * x * x / 27); }
[["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 25]]
1
35
#include <algorithm> #include <iostream> #include <vector> #ifdef _MSC_VER #pragma warning(disable : 4996) #endif using namespace std; int main() { long double a; cin >> a; a /= 3; printf("%lf", a * a * a); }
#include <algorithm> #include <iostream> #include <vector> #ifdef _MSC_VER #pragma warning(disable : 4996) #endif using namespace std; int main() { long double a; cin >> a; a /= 3; printf("%Lf", a * a * a); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
46
L = float(input()) ans = float((L/3)**3)
L = float(input()) ans = float((L/3)**3) print(ans)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
20
#include <bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007 #define f(i, a, b) for (long long i = a; i < b; i++) #define fm(i, a, b, c) for (long long i = a; i > b; i--) #define vi vector<i> #define vl vector<long long> #define vs vector<string> #define t ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007 #define f(i, a, b) for (long long i = a; i < b; i++) #define fm(i, a, b, c) for (long long i = a; i > b; i--) #define vi vector<i> #define vl vector<long long> #define vs vector<string> #define t ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
106
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; int main() { int L; cin >> L; cout << fixed << setprecision(12) << L * L * L / 27; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; int main() { double L; cin >> L; cout << fixed << setprecision(12) << L * L * L / 27; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
49
L = int(input()) print((L//3.0) ** 3)
L = int(input()) print((L/3.0) ** 3)
[["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 676], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 85]]
5
18
#include <algorithm> #include <cmath> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; const long long inf = 1e9 + 7; const long long mo...
#include <algorithm> #include <cmath> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; const long long inf = 1e9 + 7; const long long mo...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
286
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll, ll> ii; typedef tuple<ll, ll, ll> iii; typedef vector<ll> vi; typedef vector<ii> vii; typedef vector<iii> viii; typedef vector<vi> vvi; typedef vector<vii> vvii; #define REP(i, n) for (ll i = 0; i < n; ++i) #de...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll, ll> ii; typedef tuple<ll, ll, ll> iii; typedef vector<ll> vi; typedef vector<ii> vii; typedef vector<iii> viii; typedef vector<vi> vvi; typedef vector<vii> vvii; #define REP(i, n) for (ll i = 0; i < n; ++i) #de...
[["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38]]
1
180
#include <bits/stdc++.h> using namespace std; int main() { double L; double K = 27; cin >> L; cout << L * L * L / K << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; double K = 27; cin >> L; cout << setprecision(300) << L * L * L / K << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
36
#include <stdio.h> int main(void) { int L; scanf("%d", &L); float V, x, y, z; x = L / 3; y = L / 3; z = L / 3; V = x * y * z; printf("%.12f", V); }
#include <stdio.h> int main(void) { double L; scanf("%lf", &L); double V, x, y, z; x = L / 3; y = L / 3; z = L / 3; V = x * y * z; printf("%.12f", V); }
[["-", 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
66
L = int(input()) k = L//3 print(k**3)
L = int(input()) k = L/3 print(k**3)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85]]
5
19
#include <cmath> #include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int l; cin >> l; double k = (1.0 * l) / 3; printf("%.5f\n", k * k * k); }
#include <cmath> #include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int l; cin >> l; double k = (1.0 * l) / 3; printf("%.6f\n", k * k * k); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
50
#include <stdio.h> int main() { int a, b; double c; scanf("%d", &a); b = a / 3.00; c = b * b * b; printf("%.12lf", c); }
#include <stdio.h> int main() { int a; double c, b; scanf("%d", &a); b = a / 3.00; c = b * b * b; printf("%.12lf", c); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22]]
0
49
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << (l / 3.0) * (l / 3.0) * (l / 3.0); }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << setprecision(12) << (l / 3.0) * (l / 3.0) * (l / 3.0); }
[["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 16, 12, 16, 31, 16, 31, 23, 0, 24]]
1
39
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; printf("%.12f\n", double(l * l * l / 27)); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; printf("%.12f\n", double(l * l * l / 27)); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
41
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double s, res; s = l / 3; cout << fixed << setprecision(7) << s * s * s; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; double s, res; s = l / 3; cout << fixed << setprecision(7) << s * s * s; 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 <bits/stdc++.h> #define mod 1000000009 #define MAX 1111111 #define ll long long int #define ld long double #define inf ((ll)INT_MAX) * 1000 using namespace std; bool s[MAX]; ll f[MAX]; ll fibo[MAX]; ll fibonacci(ll x) { fibo[1] = fibo[2] = 1; if (x < MAX && !fibo[x]) return fibo[x]; if (x < MAX) ...
#include <bits/stdc++.h> #define mod 1000000009 #define MAX 1111111 #define ll long long int #define ld long double #define inf ((ll)INT_MAX) * 1000 using namespace std; bool s[MAX]; ll f[MAX]; ll fibo[MAX]; ll fibonacci(ll x) { fibo[1] = fibo[2] = 1; if (x < MAX && !fibo[x]) return fibo[x]; if (x < MAX) ...
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
1,565
#include <iostream> #include <string> #include <vector> #define rep(i, n) \ for (i = 0; i < n; i++) \ ; using std::cin; using std::cout; using std::endl; typedef long long ll; int main() { double l...
#include <iostream> #include <string> #include <vector> #define rep(i, n) \ for (i = 0; i < n; i++) \ ; using std::cin; using std::cout; using std::endl; typedef long long ll; int main() { double l...
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
66
#include <bits/stdc++.h> using namespace std; // Return the maximum volume. double maxvolume(int s) { // finding length double length = s / 3.0; s -= length; // finding breadth int breadth = s / 2.0; // finding height double height = s - breadth; return length * breadth * height; } // Driven Progr...
#include <bits/stdc++.h> using namespace std; // Return the maximum volume. double maxvolume(double s) { // finding length double length = s / 3.0; s -= length; // finding breadth double breadth = s / 2.0; // finding height double height = s - breadth; return length * breadth * height; } // Driven...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
81
import decimal decimal.getcontext().prec = 6 L = int(input()) l = decimal.Decimal(L/3) print(l**3)
import decimal decimal.getcontext().prec = 12 L = int(input()) l = decimal.Decimal(L/3) print(l**3)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
35
l = int(input()) mxv = float(l/3 ** 3) print(mxv)
l = int(input()) mxv = float((l/3) ** 3) print(mxv)
[["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 25]]
5
22
L = int(input()) print(L*L*L/9)
L = int(input()) print(L*L*L/27)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
18
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int l; scanf("%d", &l); printf("%.12lf", pow(l, l) / 27.0); }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int l; scanf("%d", &l); printf("%.12lf", pow(l, 3) / 27.0); }
[["-", 3, 4, 0, 16, 31, 2, 3, 4, 0, 22], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 13]]
0
44
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long long using namespace std; int mai...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long long using namespace std; int mai...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
76
#include <bits/stdc++.h> using namespace std; int main() { int l; scanf("%d", &l); printf("%d\n", l * l * l / 27); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; scanf("%lf", &l); printf("%lf\n", l * l * l / 27.0); 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, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
44
#include <bits/stdc++.h> using namespace std; #define ll long long #define MOD 1000000007 int main() { ll n; cin >> n; cout << setprecision(6) << (n / 3.0) * (n / 3.0) * (n / 3.0); return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define MOD 1000000007 int main() { ll n; cin >> n; cout << setprecision(12) << (n / 3.0) * (n / 3.0) * (n / 3.0); return 0; }
[["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
53
#include <iomanip> #include <iostream> #include <limits> using namespace std; int main() { int L; cin >> L; long double L_length; L_length = (double)L / 3.0000000; cout << setprecision(6) << L_length * L_length * L_length; return 0; }
#include <iomanip> #include <iostream> #include <limits> using namespace std; int main() { int L; cin >> L; long double L_length; L_length = (double)L / 3.0000000000000; cout << fixed << setprecision(6) << L_length * L_length * L_length; 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, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]]
1
52
puts (gets.to_f/3)**3999
puts (gets.to_f/3)**3
[["-", 0, 493, 0, 652, 3, 4, 0, 738, 12, 612], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 12, 612]]
4
10
/* ...........__________ | ___ __ .............| | | | / .............| | | | / .............| | | __ | / _______ .............|_______| _______ _______ |______ ________ /| / | |/ | | .............| \ ...
/* ...........__________ | ___ __ .............| | | | / .............| | | | / .............| | | __ | / _______ .............|_______| _______ _______ |______ ________ /| / | |/ | | .............| \ ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
258
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <numeric> #include <stdlib.h> #include <string> #include <vector> typedef long long int ll; using namespace std; int main() { int L, a, b, c; double s; cin >> L; a = L / 3; b = (L - a) / 2; c = L - a - b; s = a * b * c...
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <numeric> #include <stdlib.h> #include <string> #include <vector> typedef long long int ll; using namespace std; int main() { double L, a, b, c; double s; cin >> L; a = L / 3; b = (L - a) / 2; c = L - a - b; s = a * b ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
96
#include <stdio.h> int main(void) { int x; double y; double z; scanf("%d", &x); y = x / 3; z = y * y * y; printf("%.12f", z); return 0; }
#include <stdio.h> int main(void) { double x; double y; double z; scanf("%lf", &x); y = x / 3; z = y * y * y; printf("%f", z); 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
54
n = input() print(n*n*n/27)
n = int(input()) print(n*n*n/27)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
15
# -*- coding: utf-8 -*- # 入力 L = input() print((L/3)**3)
# -*- coding: utf-8 -*- # 入力 L = int(input()) print((L/3)**3)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
17
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int l; cin >> l; long double a = l / 3; long double b = a; long double c = l - a - b; long double vol = a * b * c; cout << fixed << setprecision(18) << vol; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long double l; cin >> l; long double a = l / 3; long double b = a; long double c = l - a - b; long double vol = a * b * c; cout << fixed << setprecision(18) << vol; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
81
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) typedef long long ll; using namespace std; int main() { double l; cin >> l; l /= 3; printf("%.10f/n", l * l * l); ...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) typedef long long ll; using namespace std; int main() { double l; cin >> l; l /= 3; printf("%.10f\n", l * l * l); ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
66
l = float(input()) print((l/3)^3)
l = float(input()) print((l/3)**3)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 140], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 578]]
5
18
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (n); ++i) #define dunk(a) cout << (a) << endl #define all(a) (a).begin(), (a).end() #define rall(a) (a).rbegin(), (a).rend() using namespace std; typedef long long ll; int main() { int l; cin >> l; double x = l / 3; cout << ...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (n); ++i) #define dunk(a) cout << (a) << endl #define all(a) (a).begin(), (a).end() #define rall(a) (a).rbegin(), (a).rend() using namespace std; typedef long long ll; int main() { int l; cin >> l; double x = l; cout << fixe...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
81
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int l; cin >> l; cout << fixed << setprecision(15) << pow(l / 3, 3); }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { double l; cin >> l; cout << fixed << setprecision(15) << pow(l / 3, 3); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
42
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int main() { long double L, ans; cin >> L; L /= 3; ans = pow(L, 3); printf("%.12f\n", ans); return 0; }
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int main() { double L, ans; cin >> L; L /= 3; ans = pow(L, 3); printf("%.12f\n", ans); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
52
// 2020 3/24 ABC159 C Maximum Volume /* a * a * a = a^3 a * (a+i) * (a-i) = a * (a^2 - i^2) 相加相乗平均 */ #include <cmath> // for pow() #include <iostream> #include <stdio.h> using namespace std; int main() { double L; cin >> L; double x = L / 3; double ans = pow(x, 3); printf("%.10f¥n", ans); ...
// 2020 3/24 ABC159 C Maximum Volume /* a * a * a = a^3 a * (a+i) * (a-i) = a * (a^2 - i^2) 相加相乗平均 */ #include <cmath> // for pow() #include <iostream> #include <stdio.h> using namespace std; int main() { double L; cin >> L; double x = L / 3; double ans = pow(x, 3); printf("%.10f\n", ans); ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
55
#include <bits/stdc++.h> using namespace std; #define jaldi \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define kuch(a, n...
#include <bits/stdc++.h> using namespace std; #define jaldi \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define kuch(a, n...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
248
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <vector> #define reps(i, s, n) for (int(i) = (s); (i) < (n); (i)++) #define rep(i, n) reps(i, 0, n) using namespace std; using ll = long long; int main() { long double l; cin >> l; long double a = l / 3.0; ...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <map> #include <vector> #define reps(i, s, n) for (int(i) = (s); (i) < (n); (i)++) #define rep(i, n) reps(i, 0, n) using namespace std; using ll = long long; int main() { long double l; cin >> l; long double a = l / 3; l...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
85
#include <iostream> #include <string> using namespace std; int main() { int num; long double c, sum; cin >> num; c = num / 3; sum = c * c * c; printf("%Lf", sum); return 0; }
#include <iostream> #include <string> using namespace std; int main() { int num; long double c, sum; cin >> num; c = num / 3.0; sum = c * c * c; printf("%Lf", sum); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
53
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <limits> #include <math.h> #include <stdio.h> #include <string> #include <vector> using namespace std; const long long INF = 1LL << 60; //各桁の和を出力 long long Sum(long long n) { long long ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <limits> #include <math.h> #include <stdio.h> #include <string> #include <vector> using namespace std; const long long INF = 1LL << 60; //各桁の和を出力 long long Sum(long long n) { long long ...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 39, 40]]
1
644
L = input(input()) print(pow(L/3,3))
L = int(input()) print(pow(L/3,3))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
19
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double ans; ans = n * n * n / 27; cout << fixed << setprecision(10) << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double ans; ans = n * n * n / 27; cout << fixed << setprecision(10) << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
45
l = int(intput()) e = l / 3.0 print(e*e*e)
l = int(input()) e = l / 3 print(e*e*e)
[["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 531], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
21
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <string> #include <vector> typedef long long ll; using namespace std; int main(void) { int l; cin >> l; long double n = l / 3; long double...
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <string> #include <vector> typedef long long ll; using namespace std; int main(void) { int l; cin >> l; long double n = (long double)l / 3; ...
[["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 24], ["+", 51, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 51, 16, 31, 74, 39, 77, 39, 86, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 25]]
1
81
#include <bits/stdc++.h> using namespace std; int main() { int L; scanf("%d", &L); double x = (double)L * L * L / 27; cout << setprecision(17) << round(x * 100000) / 100000; }
#include <bits/stdc++.h> using namespace std; int main() { int L; scanf("%d", &L); double x = (double)L * L * L / 27; cout << setprecision(17) << round(x * 1000000) / 1000000; }
[["-", 12, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
55
#include <bits/stdc++.h> #define len(x) (int)(x.size()) using namespace std; typedef long long ll; int main() { int L; cin >> L; double subans = L / 3; double ans = subans * subans * subans; printf("%.12Lf\n", ans); return 0; }
#include <bits/stdc++.h> #define len(x) (int)(x.size()) using namespace std; typedef long long ll; int main() { int L; cin >> L; long double subans = L / 3.0; long double ans = subans * subans * subans; printf("%.12Lf\n", ans); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
59
#include <bits/stdc++.h> using namespace std; #define FAST_IO \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long...
#include <bits/stdc++.h> using namespace std; #define FAST_IO \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long...
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
80
#include <bits/stdc++.h> using namespace std; double l; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> l; cout << fixed << setprecision(9) << (pow(l / 3, 3)) / 27; }
#include <bits/stdc++.h> using namespace std; double l; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> l; cout << fixed << setprecision(9) << (pow(l / 3, 3)); }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 85], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
62
import sys import os import collections def main(): if os.getenv("LOCAL"): sys.stdin = open("input.txt", "r") L = int(sys.stdin.buffer.readline().decode().rstrip()) print(L ** 3 // 27) if __name__ == '__main__': main()
import sys import os import collections def main(): if os.getenv("LOCAL"): sys.stdin = open("input.txt", "r") L = int(sys.stdin.buffer.readline().decode().rstrip()) print(L ** 3 / 27) if __name__ == '__main__': main()
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 85]]
5
75
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double a = L / 3; cout << fixed << setprecision(12) << a * a * a << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double a = (double)L / 3; cout << fixed << setprecision(15) << a * a * a << endl; }
[["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 24], ["+", 49, 50, 51, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 25], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
43
#include <bits/stdc++.h> using namespace std; using ll = long double; #define all(x) (x).begin(), (x).end() int main() { ll N; cin >> N; ll m1 = floor(N / 3); ll m2 = ceil(N / 3); ll m3 = N - m1 - m2; cout.precision(12); cout << fixed << m1 * m2 * m3 << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long double; #define all(x) (x).begin(), (x).end() int main() { ll N; cin >> N; ll m1 = (N / 3); ll m2 = (N / 3); ll m3 = N - m1 - m2; cout.precision(12); // cout << " m1 : " << m1 << endl; // cout << " m2 : " << m2 << endl; // cout << " m3 : ...
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
79
#include <algorithm> //sort,reverse #include <deque> //double_ended queue #include <iostream> #include <queue> //queue,priority_queue #include <string> #include <utility> //pair #include <vector> using namespace std; typedef pair<int, int> P; // Pでpair<-,->を表す。 typedef long long LL; LL MOD = 1000000007; #include <i...
#include <algorithm> //sort,reverse #include <deque> //double_ended queue #include <iostream> #include <queue> //queue,priority_queue #include <string> #include <utility> //pair #include <vector> using namespace std; typedef pair<int, int> P; // Pでpair<-,->を表す。 typedef long long LL; LL MOD = 1000000007; #include <i...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
88
#include <iostream> using namespace std; int main() { double L; cin >> L; double e = L / 3; cout << e * e * e << endl; return 0; }
#include <iostream> using namespace std; int main() { double L; cin >> L; double e = L / 3; cout << fixed; cout << e * e * e << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
39
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() int main() { int L; cin >> L; long double l = L / 3.0; long double V = l * l * l; cout << V << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() int main() { int L; cin >> L; long double l = L / 3.0; long double V = l * l * l; cout << setprecision(20) << V << endl; return 0; }
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
60
#include <cmath> #include <iomanip> #include <iostream> #include <map> #include <vector> using namespace std; #define rep(i, n) for (int i = 1; i <= (n); i++) typedef long long ll; int main() { int l; cin >> l; cout << fixed << setprecision(12) << pow((l / 3), 3) << endl; return 0; }
#include <cmath> #include <iomanip> #include <iostream> #include <map> #include <vector> using namespace std; #define rep(i, n) for (int i = 1; i <= (n); i++) typedef long long ll; int main() { double l; cin >> l; cout << fixed << setprecision(10) << pow((l / 3), 3) << 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, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
65
#include <bits/stdc++.h> #include <iostream> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) typedef long long ll; ll nck(ll n, ll k) { ll r = 1; for (ll d = 1; d <= k; ++d) { r *= n--; r /= d; } return r; } bool check(string s, int n, int m) { string t = s.substr(n - 1, m); ...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) typedef long long ll; ll nck(ll n, ll k) { ll r = 1; for (ll d = 1; d <= k; ++d) { r *= n--; r /= d; } return r; } bool check(string s, int n, int m) { string t = s.substr(n - 1, m); ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
179
#include <bits/stdc++.h> #include <iostream> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) typedef long long ll; ll nck(ll n, ll k) { ll r = 1; for (ll d = 1; d <= k; ++d) { r *= n--; r /= d; } return r; } bool check(string s, int n, int m) { string t = s.substr(n - 1, m); ...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) typedef long long ll; ll nck(ll n, ll k) { ll r = 1; for (ll d = 1; d <= k; ++d) { r *= n--; r /= d; } return r; } bool check(string s, int n, int m) { string t = s.substr(n - 1, m); ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
182
#include <iostream> using namespace std; int main() { int L; cin >> L; printf("%.12f", L * L * L / 27); return 0; }
#include <iostream> using namespace std; int main() { double L; cin >> L; printf("%.12f\n", L * L * L / 27); 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, 44]]
1
37
#include <bits/stdc++.h> using namespace std; int main() { double L = 0; cin >> L; cout << L * L * L / 27 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L = 0; cin >> L; cout << setprecision(20) << L * L * L / 27 << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
33
#include <bits/stdc++.h> using namespace std; int main(void) { int l; cin >> l; cout << (double)l * l * l / 27; }
#include <bits/stdc++.h> using namespace std; int main(void) { int l; cin >> l; cout << fixed << (double)l * l * l / 27; }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
33