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> //sort,二分探索,など #include <array> #include <bitset> //固定長bit集合 #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小数点の出力の誤差) #include <iostream> //入出力 ...
#include <algorithm> //sort,二分探索,など #include <array> #include <bitset> //固定長bit集合 #include <cmath> //pow,logなど #include <complex> //複素数 #include <deque> //両端アクセスのキュー #include <functional> //sortのgreater #include <iomanip> //setprecision(浮動小数点の出力の誤差) #include <iostream> //入出力 ...
[["-", 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], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
167
#include <iostream> using namespace std; bool is_palindrome(string s) { string t(s.rbegin(), s.rend()); return s == t; } int main() { double x; cin >> x; x = x / 3; double y = x * x; y = y * x; cout << y << endl; }
#include <iostream> using namespace std; bool is_palindrome(string s) { string t(s.rbegin(), s.rend()); return s == t; } int main() { double x; cin >> x; x = x / 3; double y = x * x; y = y * x; cout << fixed << y << endl; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
73
#include <bits/stdc++.h> using namespace std; int main() { float l; cin >> l; cout << setprecision(9) << fixed << (l * l * l) / 9; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << setprecision(9) << fixed << (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], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
41
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << setprecision(9) << fixed << (l * l * l) / (double)9; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << setprecision(9) << fixed << (l * l * l) / (double)27; return 0; }
[["-", 0, 1, 0, 16, 12, 16, 12, 74, 51, 13], ["+", 0, 1, 0, 16, 12, 16, 12, 74, 51, 13]]
1
44
#include <bits/stdc++.h> using namespace std; using ll = long long int; #define REP(i, n) for (int i = 0; i < (n); i++) #define REP2(i, x, n) for (int i = x; i < (n); i++) #define REP3(i, x, n) for (int i = x; i > (n); i--) #define ALL(n) begin(n), end(n) struct cww { cww() { ios::sync_with_stdio(false); cin....
#include <bits/stdc++.h> using namespace std; using ll = long long int; #define REP(i, n) for (int i = 0; i < (n); i++) #define REP2(i, x, n) for (int i = x; i < (n); i++) #define REP3(i, x, n) for (int i = x; i > (n); i--) #define ALL(n) begin(n), end(n) struct cww { cww() { ios::sync_with_stdio(false); cin....
[["-", 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], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
127
l = int(input()) print(pow(l/3),3)
l = int(input()) print(pow(l/3,3))
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
19
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using p = pair<int, int>; int main() { double L; cin >> L; double l = L / 3; double ans = l * l * l; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using p = pair<int, int>; int main() { double L; cin >> L; double l = L / 3; double ans = l * l * l; cout << setprecision(15) << ans << 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
68
L = int(input()) v = (L / 3) ^ 3 print(v)
L = int(input()) v = (L / 3) ** 3 print(v)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 140], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 578]]
5
21
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; n /= 3; cout << fixed << setprecision(12) << (double)n * n * n; }
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; n /= 3; cout << fixed << setprecision(12) << (double)n * n * n; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
41
// OPTIMIZATONS #pragma GCC optimize("02") // CODE #include <bits/stdc++.h> #define int long long #define float double #define endl "\n" #define debug cout << "Good uptill here" << endl << flush; #define deb(x) cout << #x << ":" << x << endl << flush; using namespace std; bool check(string s, int st, int fin) { int ...
// OPTIMIZATONS #pragma GCC optimize("02") // CODE #include <bits/stdc++.h> #define int long long #define float double #define endl "\n" #define debug cout << "Good uptill here" << endl << flush; #define deb(x) cout << #x << ":" << x << endl << flush; using namespace std; bool check(string s, int st, int fin) { int ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
158
l = int(input()) a = l // 3 b = (l-a)/2 c = b print(a*b*c)
l = int(input()) a = l / 3 b = (l-a)/2 c = b print(a*b*c)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85]]
5
33
#include <bits/stdc++.h> using namespace std; #define ll long long #define space " " #define MOD (long long)1000000007 #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename T> void __f(const char *variable_name, T &&value) { cout << variable_name << ": " << value << endl; } template <typename T1, typen...
#include <bits/stdc++.h> using namespace std; #define ll long long #define space " " #define MOD (long long)1000000007 #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename T> void __f(const char *variable_name, T &&value) { cout << variable_name << ": " << value << endl; } template <typename T1, typen...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]]
1
229
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double ans = pow(L / 3, 3); cout << setprecision(12) << fixed << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double ans = pow(L / 3, 3); cout << setprecision(12) << fixed << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
44
l = int(input()) ll = float(l) a=0 b=0 c=0 if(ll%3 == 0): a=ll/3 b=ll/3 c=ll/3 else: a=ll/3 b=11/3 c=ll-a-b print(a*b*c)
l = int(input()) ll = float(l) a=0 b=0 c=0 if(ll%3 == 0): a=ll/3 b=ll/3 c=ll/3 else: a=ll/3 b=a c=ll-a-b print(a*b*c)
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 22]]
5
74
#include <stdio.h> #include <stdlib.h> int main(void) { int L; scanf("%d", &L); double a = L * L * L / 27; printf("%8f", a); return 0; }
#include <stdio.h> #include <stdlib.h> int main(void) { int L; scanf("%d", &L); double a = (double)L * L * L / 27; printf("%8f", a); return 0; }
[["+", 51, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 51, 16, 31, 16, 31, 16, 31, 74, 0, 25]]
0
47
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { int L; cin >> L; double ans = L / 3 * L / 3 * L / 3; printf("%.12lf\n", ans); }
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { double L; cin >> L; double ans = L / 3 * L / 3 * L / 3; printf("%.12lf\n", ans); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
59
#include <iomanip> #include <iostream> using namespace std; int main() { long long int L; cin >> L; cout << setprecision(12) << L * L * L / 27 << endl; return 0; }
#include <iomanip> #include <iostream> using namespace std; int main() { long double L; cin >> L; cout << setprecision(12) << L * L * L / 27 << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
43
#include <bits/stdc++.h> using namespace std; using LL = long long; using Graph = vector<vector<LL>>; long long gcd(long long a, long long b) { if (b == 0) return a; else return gcd(b, a % b); } long long chmax(long long a, long long b) { a = max(a, b); } long long chmin(long long a, long long b) { a = min...
#include <bits/stdc++.h> using namespace std; using LL = long long; using Graph = vector<vector<LL>>; long long gcd(long long a, long long b) { if (b == 0) return a; else return gcd(b, a % b); } long long chmax(long long a, long long b) { a = max(a, b); } long long chmin(long long a, long long b) { a = min...
[["+", 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
242
#pragma region template #include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9; long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, S, T, U, V, W, x, y, z; long long max_value = INF, max_index = -1...
#pragma region template #include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9; long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, S, T, U, V, W, x, y, z; long long max_value = INF, max_index = -1...
[["+", 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
762
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double p = n / 3; cout << setprecision(7) << fixed << p * p * p << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double p = n / 3; cout << setprecision(9) << fixed << p * p * p << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
43
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double ans = L * L * L / 27; cout << fixed << setprecision(12) << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double ans = 1.0 * L * L * L / 27; cout << fixed << setprecision(12) << ans << endl; }
[["+", 51, 16, 31, 16, 31, 16, 31, 16, 31, 13], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 48]]
1
43
#include <stdio.h> int main(void) { double L; scanf("%Lf", &L); printf("%0.12f\n", (L / 3.0) * (L / 3.0) * (L / 3.0)); return 0; }
#include <stdio.h> int main(void) { double L; scanf("%lf", &L); printf("%0.12f\n", (L / 3.0) * (L / 3.0) * (L / 3.0)); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
51
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double l, ans; l = L / 3; ans = l * l * l; cout << setprecision(30) << l << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double l, ans; l = L / 3.0; ans = l * l * l; cout << setprecision(30) << ans << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
52
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double a = L / 3; cout << a * a * a << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double a = L / 3; cout << fixed << a * a * a << endl; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
39
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double V; V = (L * L * L) / 27; cout << fixed << setprecision(7) << V << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double V; V = (L * L * L) / 27; cout << fixed << setprecision(6) << V << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
47
L=int(input()) a=L/3 b=a**3 print("{;.12f}".format(b))
L=int(input()) a=L/3 b=a**3 print("{:.12f}".format(b))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
29
#include <stdio.h> #include <string.h> int main() { double l; scanf("%lf", l); printf("%lf", (l / 3.0) * (l / 3.0) * (l / 3.0)); }
#include <stdio.h> #include <string.h> int main() { double l; scanf("%lf", &l); printf("%lf", (l / 3.0) * (l / 3.0) * (l / 3.0)); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
47
package main import ( "bufio" "fmt" "math" "os" "strconv" "strings" ) var sc = bufio.NewScanner(os.Stdin) func Powerset1(nums []int) [][]int { if len(nums) == 0 { return [][]int{ []int{} } } length := int(math.Pow(2, float64(len(nums)))) result := make([][]int, length) for i := 0; i < length; i++ { ...
package main import ( "bufio" "fmt" "math" "os" "strconv" "strings" ) var sc = bufio.NewScanner(os.Stdin) func Powerset1(nums []int) [][]int { if len(nums) == 0 { return [][]int{ []int{} } } length := int(math.Pow(2, float64(len(nums)))) result := make([][]int, length) for i := 0; i < length; i++ { ...
[["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 25], ["+", 0, 2, 3, 4, 0, 16, 12, 2, 63, 22], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 24]]
7
1,807
l = gets.to_i puts (l**3)/27
l = gets.to_f puts (l**3)/27
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
13
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; printf("%.12d\n", pow(l / 3, 3.0)); }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; printf("%.12f\n", pow(l / 3, 3.0)); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
36
#include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; // ABC159_C int main() { int L; cin >> L; double x = L / 3; double v =...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <set> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; // ABC159_C int main() { double L; cin >> L; double x = L / 3; double ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
83
#include <bits/stdc++.h> using namespace std; #define ll long long #define int long long #define loop(i, s, e) for (int i = s; i < e; i++) #define rloop(i, s, e) for (int i = e; i >= s; i--) #define fr first #define sc second #define pb push_back #define vii vector<int> #define vll vector<ll> #define vpii vector<pair<...
#include <bits/stdc++.h> using namespace std; #define ll long long #define int long long #define loop(i, s, e) for (int i = s; i < e; i++) #define rloop(i, s, e) for (int i = e; i >= s; i--) #define fr first #define sc second #define pb push_back #define vii vector<int> #define vll vector<ll> #define vpii vector<pair<...
[["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
461
#include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <queue> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define FORR(i, m, n) f...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <queue> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define FORR(i, m, n) f...
[["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 40], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]]
1
111
#include <bits/stdc++.h> using namespace std; int main() { int l = 0; cin >> l; long double L = l / 3; cout << fixed << setprecision(7) << L * L * L << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l = 0; cin >> l; long double L = (double)l / 3; cout << fixed << setprecision(7) << L * L * L << endl; return 0; }
[["+", 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]]
1
49
#include <bits/stdc++.h> using namespace std; int main() { int l = 0; cin >> l; long double L = l / 3; long double QB = L * L * L; cout << fixed << setprecision(7) << QB << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l = 0; cin >> l; long double L = (double)l / 3; long double QB = L * L * L; cout << fixed << setprecision(7) << QB << endl; return 0; }
[["+", 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]]
1
55
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define INF 1e9 + 7 int main() { ld L; cin >> L; L /= 3; cout << setprecision(20) << ((L * L * L) / 27) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define INF 1e9 + 7 int main() { ld L; cin >> L; cout << setprecision(20) << ((L * L * L) / 27) << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
62
L = int(input()) print(format((L*3/27),'.20f'))
L = int(input()) print(format((L**3/27),'.20f'))
[["-", 3, 4, 0, 23, 0, 657, 31, 657, 17, 48], ["+", 3, 4, 0, 23, 0, 657, 31, 657, 17, 578]]
5
25
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; int main() { int L; cin >> L; cout << fixed << setprecision(6); cout << L * L * L / 27 << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; int main() { double L; cin >> L; cout << fixed << setprecision(6); cout << L * L * L / 27 << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
53
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double V = L * L * L / 27; cout << fixed << setprecision(9) << V << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double V = L * L * L / 27; cout << setprecision(32) << V << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
43
l = int(input()) v = (l/3)**2 print(v)
l = int(input()) v = (l/3)**3 print(v)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
21
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; cout << (L * L * L) / 27 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; cout << setprecision(36) << (L * L * L) / 27 << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 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], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24]]
1
33
L = int(input()) x = (l / 3) print(pow(x, 3))
l = int(input()) x = (l / 3) print(pow(x, 3))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
24
l = int(input()); ans = (l / 3) ^ 3; print(ans);
l = int(input()); ans = (l / 3) ** 3; print(ans);
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 140], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 578]]
5
24
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define next '\n' #define sp " " #define print(x) cout << (x) #define println(x) cout << (x) << next #define stop return (0) #define rep(i,...
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define next '\n' #define sp " " #define print(x) cout << (x) #define println(x) cout << (x) << next #define stop return (0) #define rep(i,...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21]]
1
135
#include <stdio.h> int main() { int l; scanf("%d", &l); double ans = l / 3; ans = ans * ans * ans; printf("%lf\n", ans); return 0; }
#include <stdio.h> int main() { double l; scanf("%lf", &l); double ans = l / 3; ans = ans * ans * ans; printf("%10.6f\n", ans); 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
49
#include <iostream> using namespace std; int main() { int n; cin >> n; double result = (double)((n / 3) * (n / 3) * (n / 3)); printf("%.12f\n", result); }
#include <iostream> using namespace std; int main() { double n; cin >> n; double result = ((n / 3) * (n / 3) * (n / 3)); printf("%.12f\n", result); }
[["-", 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, 74, 0, 24], ["-", 0, 43, 49, 50, 51, 74, 39, 77, 39, 40], ["-", 8, 9, 0, 43, 49, 50, 51, 74, 0, 25]]
1
55
import java.io.*; import java.text.DecimalFormat; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter...
import java.io.*; import java.text.DecimalFormat; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter...
[["-", 51, 492, 3, 4, 0, 23, 0, 16, 12, 499], ["+", 51, 492, 3, 4, 0, 23, 0, 16, 12, 515]]
3
353
def main(): l = input() print(l**3/27) if __name__ == '__main__': main()
def main(): l = input() print(int(l)**3/27) if __name__ == '__main__': main()
[["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25]]
5
28
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; std::cout << std::setprecision(12) << std::fixed; cout << k * k * k * 1 / 3 / 3 / 3 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; std::cout << std::setprecision(12) << std::fixed; cout << k * k * k * 1.0 / 3 / 3 / 3 << endl; }
[["-", 12, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 12, 16, 31, 16, 31, 16, 31, 16, 12, 13]]
1
52
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
209
l = input().split() m = int(l) N = m/3 v = pow(N,3) print(v)
l = input() m = int(l) N = m/3 v = pow(N,3) print(v)
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
32
L = int(input) print((L**3)/27)
L = int(input()) print((L**3)/27)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
16
<?php fscanf(STDIN,"%d",$L); // $list_a = explode(" ", trim(fgets(STDIN))); $a = (float)$L/3; echo $a; echo (float)$a*$a*$a."\n";
<?php fscanf(STDIN,"%d",$L); // $list_a = explode(" ", trim(fgets(STDIN))); $a = (float)$L/3; echo (float)$a*$a*$a."\n";
[["-", 36, 36, 0, 493, 0, 608, 0, 606, 0, 607], ["-", 36, 36, 0, 493, 0, 608, 0, 606, 0, 141], ["-", 36, 36, 36, 36, 0, 493, 0, 608, 0, 35], ["-", 36, 36, 36, 36, 0, 493, 0, 608, 0, 621]]
6
46
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double x = l * l * l / 27; cout << fixed << setprecision(7) << x << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double x = l * l * l / 27.0; cout << fixed << setprecision(7) << x << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
46
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int L = in.nextInt(); /* let a, b, and c represent the side lengths a + b + c = L volume = a*b*c according to the AM-GM inequality: (a*b*c)^(1/3...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int L = in.nextInt(); /* let a, b, and c represent the side lengths a + b + c = L volume = a*b*c according to the AM-GM inequality: (a*b*c)^(1/3...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 16, 31, 74, 51, 23, 0, 24]]
3
77
#include <bits/stdc++.h> using namespace std; #define xx first #define yy second #define pb push_back #define mp make_pair #define LL long long #define inf INT_MAX / 3 #define mod 1000000007ll #define PI acos(-1.0) #define linf (1ll << 60) - 1 #define FOR(I, A, B) for (int I = (A); I < (B); ++I) #define REP(I, N) FOR...
#include <bits/stdc++.h> using namespace std; #define xx first #define yy second #define pb push_back #define mp make_pair #define LL long long #define inf INT_MAX / 3 #define mod 1000000007ll #define PI acos(-1.0) #define linf (1ll << 60) - 1 #define FOR(I, A, B) for (int I = (A); I < (B); ++I) #define REP(I, N) FOR...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
343
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <string> #include <vector> typedef long long int64; int main(void) { int l; std::cin >> l; printf("%.12f\n", (double)(l * l * l / 27)); return 0; }
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <string> #include <vector> typedef long long int64; int main(void) { int l; std::cin >> l; printf("%.12f\n", (double)(l * l * l) / 27); return 0; }
[["+", 3, 4, 0, 16, 31, 74, 51, 23, 0, 25], ["-", 0, 2, 3, 4, 0, 74, 51, 23, 0, 25]]
1
59
print(pow(int(input) / 3, 3))
print(pow(int(input()) / 3, 3))
[["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
14
L = int(input()) volume = L ** 3 / 9 print(volume)
L = int(input()) # volume = (L / 3) * (L / 3) * (L / 3) volume = L ** 3 / 27 print(volume)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
19
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<string> vs; typedef unordered_set<int> si; typedef pair<int, int> pp; #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename T> void printV(vector<T> A) { if (A....
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<string> vs; typedef unordered_set<int> si; typedef pair<int, int> pp; #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename T> void printV(vector<T> A) { if (A....
[["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 48], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13]]
1
367
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; cout << fixed << setprecision(7); double a = l / 3; a = pow(a, 3); cout << a; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; cout << fixed << setprecision(7); double a = l / 3; // cout<<a<<endl; a = pow(a, 3); // cout<<a<<endl; cout << a; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
48
// https://ei1333.github.io/luzhiled/ // http://beet-aizu.hatenablog.com/entry/2017/01/04/113233 // http://www.prefield.com/algorithm/ #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; using vd = vector<ld>; using vs = vector<string>; using vb = vector<bo...
// https://ei1333.github.io/luzhiled/ // http://beet-aizu.hatenablog.com/entry/2017/01/04/113233 // http://www.prefield.com/algorithm/ #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; using vd = vector<ld>; using vs = vector<string>; using vb = vector<bo...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22]]
1
755
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #def...
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #def...
[["+", 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
623
f = int(input()) / 3.0 print("{.9f}".format(f * f * f))
f = int(input()) / 3.0 print("{:.9f}".format(f * f * f))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
25
#include <bits/stdc++.h> using namespace std; // L=a+b+c, max(abc) -> AM・GM不等式 int main() { int L; double ans; cin >> L; ans = L * L * L / 27; cout << fixed << setprecision(12) << ans << endl; }
#include <bits/stdc++.h> using namespace std; // L=a+b+c, max(abc) -> AM・GM不等式 int main() { int L; double ans; cin >> L; ans = (double)(L * L * L) / 27; cout << fixed << setprecision(12) << ans << endl; }
[["+", 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], ["+", 0, 11, 12, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 74, 51, 23, 0, 25]]
1
46
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <map> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; int main() { int n; cin >> n; double num = n / 3; double ans = pow(num, 3); printf("%.10f\n", ans); ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <map> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; int main() { double n; cin >> n; double num = n / 3; double ans = pow(num, 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
72
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; int main() { double L; cin >> L; /* ll max=0; for (ll i = 1; i <= L; i++) { for (ll j = 1; j <= L - i;j++) { ...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; int main() { double L; cin >> L; cout << fixed << pow(L / 3, 3); }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
51
l = int(input()) print(pow(1/3,3))
l = int(input()) print(pow(l/3,3))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 31, 22]]
5
19
#include <algorithm> #include <iomanip> #include <iostream> using namespace std; int main() { float L; cin >> L; cout << fixed << setprecision(5) << ((L * 1.0 / 3) * (L * 1.0 / 3) * (L * 1.0 / 3)); return 0; }
#include <algorithm> #include <iomanip> #include <iostream> using namespace std; int main() { float L; cin >> L; cout << fixed << setprecision(6) << ((L * 1.0 / 3) * (L * 1.0 / 3) * (L * 1.0 / 3)); return 0; }
[["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
61
print ((gets.to_i)/3)**3
print ((gets.to_i)/3.to_f)**3
[["+", 0, 738, 31, 739, 0, 738, 12, 652, 17, 131], ["+", 0, 738, 31, 739, 0, 738, 12, 652, 735, 22]]
4
12
n = int(input()) print(n**3//27)
n = int(input()); print(n**3/27)
[["+", 36, 36, 36, 36, 36, 36, 0, 656, 0, 35], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 85]]
5
16
#include <bits/stdc++.h> #define rep(i, start, end) for (long long int i = start; i < end; ++i) #define srt(x) sort((x).begin(), (x).end()); #define rsrt(x) sort((x).rbegin(), (x).rend()); #define deb(x) cout << #x << " = " << (x) << " (L" << LINE << ")" << endl; #define vdeb(x) ...
#include <bits/stdc++.h> #define rep(i, start, end) for (long long int i = start; i < end; ++i) #define srt(x) sort((x).begin(), (x).end()); #define rsrt(x) sort((x).rbegin(), (x).rend()); #define deb(x) cout << #x << " = " << (x) << " (L" << LINE << ")" << endl; #define vdeb(x) ...
[["+", 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
108
#include <bits/stdc++.h> #define ll long long #define ld long double #define rep(i, a, b) for (ll i = a; i < b; ++i) #define rrep(i, a, b) for (ll i = a; i > b; --i) #define vl vector<long> #define vll vector<ll> #define pll pair<ll, ll> #define pb push_back #define mp make_pair #define endl "\n" #define fastio ...
#include <bits/stdc++.h> #define ll long long #define ld long double #define rep(i, a, b) for (ll i = a; i < b; ++i) #define rrep(i, a, b) for (ll i = a; i > b; --i) #define vl vector<long> #define vll vector<ll> #define pll pair<ll, ll> #define pb push_back #define mp make_pair #define endl "\n" #define fastio ...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]]
1
123
#include "bits/stdc++.h" using namespace std; using u32 = uint32_t; using u64 = uint64_t; using i64 = int64_t; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define F0R(i, b) FOR(i, 0, b) #define RFO(i, a, b) for (int i = (b - 1); i >= a; i--) #define RF0(i, b) RFO(i, 0, b) int main() { cin.tie(0); ios_b...
#include "bits/stdc++.h" using namespace std; using u32 = uint32_t; using u64 = uint64_t; using i64 = int64_t; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define F0R(i, b) FOR(i, 0, b) #define RFO(i, a, b) for (int i = (b - 1); i >= a; i--) #define RF0(i, b) RFO(i, 0, b) int main() { cin.tie(0); ios_b...
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 74, 0, 24], ["+", 51, 16, 31, 23, 0, 74, 39, 77, 39, 40], ["+", 49, 50, 51, 16, 31, 23, 0, 74, 0, 25], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
110
#include <stdio.h> int main(void) { double L, l; scanf("%d", &L); l = (L / 3) * (L / 3) * (L / 3); printf("%f\n", l); return 0; }
#include <stdio.h> int main(void) { double L, l; scanf("%lf", &L); l = (L / 3) * (L / 3) * (L / 3); printf("%f\n", l); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
57
#include <bits/stdc++.h> #define ld long double using namespace std; int main() { ld x; cin >> x; x *= 1.0; x /= 3.0; ld res = 1.0 * x * x * x; cout << res << "\n"; }
#include <bits/stdc++.h> #define ld long double using namespace std; int main() { ld x; cin >> x; x *= 1.0; x /= 3.0; ld res = 1.0 * x * x * x; cout << setprecision(20) << res << "\n"; }
[["+", 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
49
#整数の入力 N = int(input()) a = int(N/3) print(a*a*a)
#整数の入力 N = int(input()) a = N/3 print(a*a*a)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
25
#include <bits/stdc++.h> using namespace std; const int INF = 2100100100; using ll = long long; int main() { int L; cin >> L; double l = L / 3.l; printf("%.12f\n.", pow(l, 3)); return 0; }
#include <bits/stdc++.h> using namespace std; const int INF = 2100100100; using ll = long long; int main() { int L; cin >> L; double d = L / 3.l; printf("%.12f\n", pow(d, 3)); return 0; } // int main() { // int L; // cin >> L; // double d = L / 3.l; // // double ans = ); // printf("%.1...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22]]
1
57
#include <bits/stdc++.h> using namespace std; const int INF = 2100100100; using ll = long long; int main() { int L; cin >> L; double l = L / 3.0; printf("%.12f\n.", pow(l, 3)); return 0; }
#include <bits/stdc++.h> using namespace std; const int INF = 2100100100; using ll = long long; // int main(){ // int L; // cin >> L; // double l = L/3.l; // printf("%.12f\n.",pow(l,3)); // return 0; // } int main() { int L; cin >> L; double d = L / 3.l; // double ans = ); printf("%.12...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 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, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22]]
1
57
#include <bits/stdc++.h> using namespace std; const int INF = 2100100100; using ll = long long; // int main(){ // int L; // cin >> L; // double l = L/3.l; // printf("%.12f\n.",pow(l,3)); // return 0; // } int main() { int L; cin >> L; double d = L / 3; double ans = d * d * d; printf("%...
#include <bits/stdc++.h> using namespace std; const int INF = 2100100100; using ll = long long; // int main(){ // int L; // cin >> L; // double l = L/3.l; // printf("%.12f\n.",pow(l,3)); // return 0; // } int main() { int L; cin >> L; double d = L / 3.l; double ans = d * d * d; printf(...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
66
package main import "fmt" func main() { var L int fmt.Scan(&L) fmt.Printf("%.12f\n", float64(L*L*L/27)) }
package main import "fmt" func main() { var L float64 fmt.Scan(&L) fmt.Printf("%.12f\n", L*L*L/27) }
[["-", 0, 435, 8, 196, 0, 440, 0, 441, 39, 78], ["+", 0, 435, 8, 196, 0, 440, 0, 441, 39, 78], ["-", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
7
48
// AtCoder1.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { int L; cin >> L; cout << fixed << setprecision(20) << pow(L / 3, 3) << endl; }
// AtCoder1.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { int L; cin >> L; cout << fixed << setprecision(20) << pow(L / 3.0, 3) << endl; }
[["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
52
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define cool \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie...
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define cool \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
76
print(float(input()) / 3 ** 3)
print((float(input()) / 3) ** 3)
[["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25]]
5
13
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double V = L * L * L / 3; cout << fixed << setprecision(6) << V << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double V = L * L * L / 27; cout << fixed << setprecision(6) << V << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
43
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { double l, n; double ans = 0.0; cin >> l; n = l / 3; ans = n * n * n; cout << ans << endl; }
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { double l, n; double ans = 0.0; cin >> l; n = l / 3; ans = n * n * n; cout << fixed; cout << ans << endl; }
[["+", 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
50
#include <stdio.h> int main() { double l; scanf("%lf", l); l /= 3; printf("%lf", l * l * l); }
#include <stdio.h> int main() { double l; scanf("%lf", &l); l /= 3; printf("%lf", l * l * l); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
37
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double ans; ans = ((n / 3) * (n / 3) * (n / 3)); printf("%.12lf", ans); }
#include <bits/stdc++.h> using namespace std; int main() { double n; cin >> n; double ans; ans = ((n / 3) * (n / 3) * (n / 3)); printf("%.12lf", ans); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
53
L=int(input()) l=L//3 print(l*l*(L-2*l))
L=int(input()) l=L/3 print(l*l*(L-2*l))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85]]
5
27
#include <iomanip> #include <iostream> using namespace std; typedef long long ll; int main() { int n; cin >> n; double x = n / 3; double ans = x * x * x; cout << fixed << setprecision(7) << ans << '\n'; return 0; }
#include <iomanip> #include <iostream> using namespace std; typedef long long ll; int main() { int n; cin >> n; double x = (double)n / 3; double ans = x * x * x; cout << fixed << setprecision(7) << ans << '\n'; return 0; }
[["+", 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]]
1
60
#include <bits/stdc++.h> using namespace std; int L; int main() { cin >> L; double d = L / 3; printf("%lf\n", pow(d, 3)); }
#include <bits/stdc++.h> using namespace std; double L; int main() { cin >> L; double d = L / 3; printf("%lf\n", pow(d, 3)); }
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40]]
1
41
#include <cmath> #include <cstdio> #include <iomanip> #include <iostream> using namespace std; int main() { long double s; cin >> s; s /= 3; printf("%.12lf", s * s * s); return 0; }
#include <cmath> #include <cstdio> #include <iomanip> #include <iostream> using namespace std; int main() { double s; cin >> s; s /= 3; printf("%.12lf", s * s * s); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
46
#include <math.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <vector> #include <bits/stdc++.h> using namespace std; #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define TRUE (0) #define FALSE (1) // This value shold be close to used maximum value. #...
#include <math.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <vector> #include <bits/stdc++.h> using namespace std; #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define TRUE (0) #define FALSE (1) // This value shold be close to used maximum value. #...
[["+", 0, 1, 0, 11, 12, 16, 12, 74, 0, 24], ["+", 0, 11, 12, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 0, 25], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
361
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { int l; cin >> l; cout << fixed << setprecision(7) << l * l * l / 27 << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { double l; cin >> l; cout << fixed << setprecision(7) << l * l * l / 27 << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
51
#include <bits/stdc++.h> #define llu unsigned long long #define ll long long #define INF 0x3f3f3f3f #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> #define llu unsigned long long #define ll long long #define INF 0x3f3f3f3f #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
67
#include <bits/stdc++.h> using namespace std; double long temp; int l; int main() { cin >> l; temp = l / 3; cout << fixed << setprecision(12) << temp * temp * temp << endl; }
#include <bits/stdc++.h> using namespace std; double long temp, l; int main() { cin >> l; temp = l / 3; cout << fixed << setprecision(12) << temp * temp * temp << endl; }
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 0, 21]]
1
46
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a; cin >> a; double s = a / 3; double ans = pow(s, 3); printf("%.10f\n", ans); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { double a; cin >> a; double s = a / 3; double ans = pow(s, 3); printf("%.10f\n", ans); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
54
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; typedef pair<int, int> P; int main() { long L; cin >> L; double a = L / 3; double ans = pow(a, 3); cout << fixed << setprecision(15) << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; typedef pair<int, int> P; int main() { double L; cin >> L; double a = L / 3; double ans = pow(a, 3); cout << fixed << setprecision(6) << ans << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 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
71
l = int(input()) if l%3 == 0: print((l//3)**3) else: t = l//3 if l%3 == 1: print(t**3+t**2+t/3+1/27) else: print(t**3+2*t**2+2*t/3+8/27)
l = int(input()) if l%3 == 0: print((l//3)**3) else: t = l//3 if l%3 == 1: print(t**3+t**2+t/3+1/27) else: print(t**3+2*t**2+4*t/3+8/27)
[["-", 0, 657, 31, 657, 12, 657, 31, 657, 31, 612], ["+", 0, 657, 31, 657, 12, 657, 31, 657, 31, 612]]
5
81
L = int(input()) print((L / 2) ** 3)
L = int(input()) print((L / 3) ** 3)
[["-", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612]]
5
18