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 <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define pb pu...
#include <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define pb pu...
[["+", 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]]
1
68
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) #define reps(i, n) for (ll i = 1, i##_len = (n); i <= i##_len; ++i) #define rrep(i, n) for (ll i = ((int)(n)-1); i >= 0; --i) #define rreps(i, n) for (ll i = ((int)(n)); i > 0; --i) #define ll long long #define ALL(x) (x).begin(), (x).end() #define...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) #define reps(i, n) for (ll i = 1, i##_len = (n); i <= i##_len; ++i) #define rrep(i, n) for (ll i = ((int)(n)-1); i >= 0; --i) #define rreps(i, n) for (ll i = ((int)(n)); i > 0; --i) #define ll long long #define ALL(x) (x).begin(), (x).end() #define...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
223
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(ri, n) for (int ri = (int)(n - 1); ri >= 0; ri--) #define rep2(i, x, n) for (int i = (int)(x); i < (int)(n); i++) #define repit(itr, x) for (auto itr = x.begin(); itr != x.end(); itr++) #define rrepit(ritr, x) for (auto ritr = x....
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(ri, n) for (int ri = (int)(n - 1); ri >= 0; ri--) #define rep2(i, x, n) for (int i = (int)(x); i < (int)(n); i++) #define repit(itr, x) for (auto itr = x.begin(); itr != x.end(); itr++) #define rrepit(ritr, x) for (auto ritr = x....
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
107
#include <bits/stdc++.h> using namespace std; #define int long long #define dans(ans) cout << std::fixed << std::setprecision(10) << ans << endl; main() { double a, b, c, add; int v; cin >> v; v = v / 3; dans(v * v * v) } /// check long long /// check array size()
#include <bits/stdc++.h> using namespace std; #define int long long #define dans(ans) cout << std::fixed << std::setprecision(10) << ans << endl; main() { double a, b, c, add, v; cin >> v; v = v / 3; dans(v * v * v) } /// check long long /// check array size()
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
53
L = int(input()) print(L/3**3)
L = int(input()) 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
16
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; cout << (L / 3.0) * (L / 3.0) * (L / 3.0) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; cout << setprecision(20) << (L / 3.0) * (L / 3.0) * (L / 3.0) << endl; return 0; }
[["+", 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], ["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24]]
1
44
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double l = L / 3; printf("%f\n", l * l * l); }
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; double l = L / 3.000000; printf("%f\n", l * l * l); }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
40
#include <bits/stdc++.h> int main() { using namespace std; string S; cin >> S; unsigned long N{S.size()}, M{N / 2}; for (unsigned long i{1}; i < M; ++i) if (S[i - 1] != S[M - i] || S[M - i] != S[M + i] || S[M + i] != S[N - i - 1]) return 0 & puts("No"); puts("Yes"); return 0; }
#include <bits/stdc++.h> int main() { using namespace std; string S; cin >> S; unsigned long N{S.size()}, M{N / 2}; for (unsigned long i{1}; i < M; ++i) if (S[i - 1] != S[M - i] || S[M - i] != S[M + i] || S[M + i] != S[N - i]) return 0 & puts("No"); puts("Yes"); return 0; }
[["-", 12, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["-", 12, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
119
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll n; cin >> n; long double d = (double)(n * n * n) / 3; string s = to_string(d); for (int i = 0; i < 6; i++) { s += '0'; } cout << s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll n; cin >> n; long double d = (double)(n * n * n) / 27; string s = to_string(d); for (int i = 0; i < 6; i++) { s += '0'; } cout << s << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
78
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { int k; cin >> k; double sum = pow(k / 3, 3); cout << fixed << setprecision(6) << sum << endl; }
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { double k; cin >> k; double sum = pow(k / 3, 3); cout << fixed << setprecision(6) << sum << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
49
#include <bits/stdc++.h> using namespace std; double volume(int s) { double l = s / 3; s -= l; double b = s / 2; double h = s - b; return l * b * h; } int main() { double n; cin >> n; printf("%.12lf", volume(n)); }
#include <bits/stdc++.h> using namespace std; double volume(double s) { double l = s / 3; s -= l; double b = s / 2; double h = s - b; return l * b * h; } int main() { double n; cin >> n; printf("%.12lf", volume(n)); }
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40]]
1
71
L=int(input()) print(pow(L//3,3))
L=int(input()) print(pow(L/3,3))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85]]
5
19
L = int(input()) l = int(L / 3) L -= l b = L / 2 h = L - b print(l * b * h)
L = int(input()) l = L / 3 L -= l b = L / 2 h = L - b print(l * b * h)
[["-", 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
37
#include <stdio.h> int main() { double x, y; int l; scanf("%d", &l); y = l / 3; x = y * y * y; printf("%.12lf\n", x); }
#include <stdio.h> int main() { double x, y; int l; scanf("%d", &l); y = l / 3.0; x = y * y * y; printf("%.12lf\n", x); }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
0
50
#include <stdio.h> int main() { double L, a; scanf("%d", &L); a = L / 3; printf("%lf", a * a * a); return 0; }
#include <stdio.h> int main() { int L; double a; scanf("%d", &L); a = L / 3.0; printf("%lf", a * a * a); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
0
45
#include <bits/stdc++.h> using namespace std; // long long using ll = long long; // pair<int, int> using PII = pair<int, int>; //最大値、mod const int MOD = 1000000007; const int INF = 1000000000; const long long LINF = 1e18; const int MAX = 510000; //出力系 #define print(x) cout << x << endl #define prints(x) cout << fix...
#include <bits/stdc++.h> using namespace std; // long long using ll = long long; // pair<int, int> using PII = pair<int, int>; //最大値、mod const int MOD = 1000000007; const int INF = 1000000000; const long long LINF = 1e18; const int MAX = 510000; //出力系 #define print(x) cout << x << endl #define prints(x) cout << fix...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 12, 74, 0, 24], ["+", 49, 50, 51, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 12, 74, 0, 25]]
1
566
#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; double ans = L * L * L / 27; cout << fixed << setprecision(15) << ans; }
#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; double ans = (L * L * L + 0.0000001) / 27; cout << fixed << setprecision(15) << ans; }
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
54
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, x, n) for (int i = x; i < n; i++) using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ll = long long; const int mod = 1'000'000'007; int main() { int l; cin >> l; double x = l / 3; double ans = pow(x, 3...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, x, n) for (int i = x; i < n; i++) using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ll = long long; const int mod = 1'000'000'007; int main() { double l; cin >> l; double x = l / 3; double ans = pow(x...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
95
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> typedef long long ll; #define PI 3.14159265359 #define rep(i, n) for...
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> typedef long long ll; #define PI 3.14159265359 #define rep(i, n) for...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
1,748
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int l; cin >> l; double hen; hen = double(l / 3); double hen2 = hen * hen * hen; cout << fixed << setprecision(10) << (l * l * l) / 27; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int l; cin >> l; double hen; hen = double(l / 3); double hen2 = hen * hen * hen; cout << fixed << setprecision(10) << (double)(l * l * l) / 27; }
[["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 16, 12, 16, 31, 74, 51, 23, 0, 24]]
1
67
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double d = l / 3; printf("%.10lf", d * d * d); }
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double d = l / 3.0; printf("%.10lf", d * d * d); }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
39
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <string> #include <vector> using namespace std; double condition = 0.0; void func() { int L; cin >> L; cout << fixed << setprecision(15) << L * L * L / 27 << endl; } int main() { // while(1...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <string> #include <vector> using namespace std; double condition = 0.0; void func() { int L; cin >> L; cout << fixed << setprecision(15) << (double)(L * L * L) / 27 << endl; } int main() { ...
[["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25], ["+", 31, 16, 12, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 51, 23, 0, 25]]
1
71
#include <bits/stdc++.h> #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) #define ALL(x) (x).begin(), (x).end() #define SIZE(x) ((ll)(x).size()) #define MAX...
#include <bits/stdc++.h> #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) #define ALL(x) (x).begin(), (x).end() #define SIZE(x) ((ll)(x).size()) #define MAX...
[["-", 0, 43, 49, 50, 51, 74, 51, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 74, 51, 23, 0, 25]]
1
140
#include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <stdint.h> #include <vector> using namespace std; #define int long long #define INF 1001001001 int32_t main() { int L; cin >> L; double ans = L / 3; ans = ans * ans * ans; cout << fixed << setprecision(12) << ans << endl;...
#include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <stdint.h> #include <vector> using namespace std; #define int long long #define INF 1001001001 int32_t main() { double L; cin >> L; double ans = L / 3; ans = ans * ans * ans; cout << fixed << setprecision(12) << ans << en...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
63
#include <algorithm> #include <assert.h> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdint> #include <cstdio> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> ...
#include <algorithm> #include <assert.h> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdint> #include <cstdio> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
248
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) begin(v), end(v) using ll = long long; int main() { int l; cin >> l; double n = l / 3; double ans = n * n * n; cout << fixed << setprecision(10) << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) begin(v), end(v) using ll = long long; int main() { int l; cin >> l; double n = (double)l / 3; double ans = n * n * n; cout << fixed << setprecision(10) << ans << 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]]
1
68
#include <ciso646> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <string> #include <vector> using ll = long long; using namespace std; int main() { /*六日目*/ //少数も使いたい割り算はしない方がいい // 数値の大きさ // for文で0代入する場所はforの一文下 //オーバーフローする一手手前を分解して作る・ 割り算で...
#include <ciso646> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <string> #include <vector> using ll = long long; using namespace std; int main() { /*六日目*/ //少数も使いたい割り算はしない方がいい // 数値の大きさ // for文で0代入する場所はforの一文下 //オーバーフローする一手手前を分解して作る・ 割り算...
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
69
import java.math.BigDecimal; import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int L = sc.nextInt(); double a = L / 3; double b = a * a * a; System.out.println(BigDecimal.valueOf(a * a *...
import java.math.BigDecimal; import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); double L = sc.nextDouble(); double a = L / 3; double b = a * a * a; System.out.println(BigDecimal.valueOf(a...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]]
3
92
#include <bits/stdc++.h> using namespace std; template <class T> T input() { T t; cin >> t; return t; } #define FOR(i, a, b) for (ll i = a; i < b; i++) #define REP(i, b) FOR(i, 0, b) #define RFOR(i, a, b) for (ll i = a - 1; i >= b; i--) #define RREP(i, a) RFOR(i, a, 0) #define REPALL(i, x) for (ll i = 0; i < x.si...
#include <bits/stdc++.h> using namespace std; template <class T> T input() { T t; cin >> t; return t; } #define FOR(i, a, b) for (ll i = a; i < b; i++) #define REP(i, b) FOR(i, 0, b) #define RFOR(i, a, b) for (ll i = a - 1; i >= b; i--) #define RREP(i, a) RFOR(i, a, 0) #define REPALL(i, x) for (ll i = 0; i < x.si...
[["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
364
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++) using namespace std; int main() { int L; cin >> L; cout << fixed << setprecision(10); cout << (double)(L * L * L / 27) << endl; }
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++) using namespace std; int main() { int L; cin >> L; cout << fixed << setprecision(10); cout << (double)L * L * L / 27 << endl; }
[["-", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
65
#include <bits/stdc++.h> #include <iomanip> using namespace std; #define pii pair<int, int> #define vi vector<int> #define fi first #define sec second #define pb push_back #define ll long long int #define mp make_pair #define endl '\n' #define rep(i, a, b) for (int i = a; i <= b; i++) #define revp(i, a, b) for (int i =...
#include <bits/stdc++.h> #include <iomanip> using namespace std; #define pii pair<int, int> #define vi vector<int> #define fi first #define sec second #define pb push_back #define ll long long int #define mp make_pair #define endl '\n' #define rep(i, a, b) for (int i = a; i <= b; i++) #define revp(i, a, b) for (int i =...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40]]
1
163
#include <bits/stdc++.h> #define rep(i, n) for (long long int i = 0; i < (n); ++i) using namespace std; typedef long long int ll; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b...
#include <bits/stdc++.h> #define rep(i, n) for (long long int i = 0; i < (n); ++i) using namespace std; typedef long long int ll; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
141
#include "bits/stdc++.h" #define rep(i, N) for (int i = 0; i < N; i++) typedef long long ll; const int mod = 1e9 + 7; using namespace std; int main(void) { int L; cin >> L; long double x = (long double)L / 3.0; printf("%.10lf\n", x * x * x); return 0; }
#include "bits/stdc++.h" #define rep(i, N) for (int i = 0; i < N; i++) typedef long long ll; const int mod = 1e9 + 7; using namespace std; int main(void) { int L; cin >> L; long double x = (long double)L / 3.0; printf("%.10Lf\n", x * x * x); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
72
#include <cmath> #include <iomanip> #include <iostream> #include <math.h> using namespace std; int main() { int l; double a, b; cin >> l; a = (l * l * l) / 27; cout << fixed << setprecision(10) << l * l * l / 27; }
#include <cmath> #include <iomanip> #include <iostream> #include <math.h> using namespace std; int main() { double l; double a, b; cin >> l; a = (l * l * l) / 27; cout << fixed << setprecision(10) << 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
59
#include <bits/stdc++.h> #define MAX 100005 #define MOD 1e9 #define pb push_back #define pairs pair<int, int> #define vi vector<int> #define vb vector<bool> #define vii vector<pairs> #define lb lower_bound #define ub upper_bound #define ll long long #define endl '\n' using namespace std; /* ----------------------------...
#include <bits/stdc++.h> #define MAX 100005 #define MOD 1e9 #define pb push_back #define pairs pair<int, int> #define vi vector<int> #define vb vector<bool> #define vii vector<pairs> #define lb lower_bound #define ub upper_bound #define ll long long #define endl '\n' using namespace std; /* ----------------------------...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
418
#include <bits/stdc++.h> using namespace std; int main() { double a; cin >> a; printf("%.12llf", (a * a * a / 27)); }
#include <bits/stdc++.h> using namespace std; int main() { double a; cin >> a; printf("%.12f", (a * a * a / 27)); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
36
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using LL = long long; using p = pair<int, int>; int main() { int L; cin >> L; double x, y, z; x = L / 3; y = L / 3; z = L - 2 * x; printf("%.10lf\n", x * y * z); return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using LL = long long; using p = pair<int, int>; int main() { double L; cin >> L; double x, y, z; x = L / 3; y = L / 3; z = L - 2 * x; printf("%.10lf\n", x * y * z); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
87
#include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int L; cin >> L; double ans = pow((L / 3), 3); cout << fixed << setprecision(10) << ans << endl; }
#include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { double L; cin >> L; double ans = pow((L / 3), 3); cout << fixed << setprecision(15) << ans << 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
52
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() const ll INF = 1LL << 60; int main() { long double l; cin >> l; long double ans = l * l * l; ans /= 27; printf("%.8f", ans); }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() const ll INF = 1LL << 60; int main() { double l; cin >> l; double ans = l * l * l; ans /= 27; printf("%.8f", ans); }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
71
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; int r = l / 3.0; double ans = r * r * r; printf("%.8f", ans); }
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double r = l / 3.0; double ans = r * r * r; printf("%.8f", ans); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
44
#include <bits/stdc++.h> #include <cstdio> using namespace std; #define rep(i, l, r) for (int i = (l); i < (r); i++) #define pb push_back #define fi first #define se second using ll = long long; using G = vector<vector<int>>; using pii = pair<int, int>; using pll = pair<ll, ll>; const ll MOD = 1000000007; ll GCD(ll ...
#include <bits/stdc++.h> #include <cstdio> using namespace std; #define rep(i, l, r) for (int i = (l); i < (r); i++) #define pb push_back #define fi first #define se second using ll = long long; using G = vector<vector<int>>; using pii = pair<int, int>; using pll = pair<ll, ll>; const ll MOD = 1000000007; ll GCD(ll ...
[["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
135
#include <bits/stdc++.h> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } #define rep(i, cc, n) for (int i = cc; i < n; ++i) #defi...
#include <bits/stdc++.h> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } #define rep(i, cc, n) for (int i = cc; i < n; ++i) #defi...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
222
#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> #include <ctime> #include <algorithm> #include <bitset> #in...
#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> #include <ctime> #include <algorithm> #include <bitset> #in...
[["+", 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
198
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < int(N); ++i) using i64 = int64_t; using ll = long long; int main() { int L; cin >> L; int v = pow(L, 3); double ans; ans = double(v / 27); cout << fixed << setprecision(10); cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < int(N); ++i) using i64 = int64_t; using ll = long long; int main() { int L; cin >> L; double v = pow(L, 3); double ans; ans = double(v / 27); cout << fixed << setprecision(10); cout << ans << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
78
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; cout << fixed << setprecision(5); double ans = (L * L * L) / 27.0; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; cout << fixed << setprecision(10); double ans = (L * L * L) / 27.0; cout << ans << endl; return 0; }
[["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13]]
1
50
l=int(input()) temp1=l//3 temp2=(l-l//3)//2 print(temp1*temp2*(l-temp1-temp2))
l=int(input()) temp1=l/3 temp2=(l-l/3)/2 print(temp1*temp2*(l-temp1-temp2))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["-", 12, 657, 31, 23, 0, 657, 12, 657, 17, 676], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 17, 85]]
5
38
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; cout << setprecision(12); cout << (double)((L * L * L) / 27) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; cout << setprecision(12); cout << (double)L * L * L / 27 << endl; }
[["-", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["-", 12, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 74, 51, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
45
#include "bits/stdc++.h" #include <chrono> using namespace std; using namespace std::chrono; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define forn(ii, nn) for (int ii = 0; ii < nn; ++ii) #define gcd(ade, bde) __gcd(ade, bde) #define vi vector<int> #define vll vector<ll> #define v...
#include "bits/stdc++.h" #include <chrono> using namespace std; using namespace std::chrono; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define forn(ii, nn) for (int ii = 0; ii < nn; ++ii) #define gcd(ade, bde) __gcd(ade, bde) #define vi vector<int> #define vll vector<ll> #define v...
[["-", 0, 43, 49, 50, 51, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 12, 13]]
1
1,049
L = int(input().split()) print((L**3)/27)
L = int(input()) print((L**3)/27)
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
22
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { int L; cin >> L; double ans = (L / 3) * (L / 3) * (L / 3); printf("%...
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> #define ll long long using namespace std; int main() { double L; cin >> L; double ans = (L / 3) * (L / 3) * (L / 3); printf...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
74
#include <iostream> using namespace std; int main() { int l; cin >> l; double ans = l * l * l / 27; printf("%10f\n", ans); }
#include <iostream> using namespace std; int main() { int l; cin >> l; double ans = l * l * l / 27.0; printf("%10f\n", ans); }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
40
#include <math.h> #include <stdio.h> int main() { int l; scanf("%d", &l); printf("%llf", (long double)pow(l, 3) / 3.0); return 0; }
#include <math.h> #include <stdio.h> int main() { int l; scanf("%d", &l); printf("%Lf", (long double)pow(l, 3) / 27.0); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
46
l = gets.chomp.to_i puts (l/3)**3
l = gets.chomp.to_f puts (l/3)**3
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
15
#include <bits/stdc++.h> #define ll long long #define rep(i, n)(for i-0;i<(n);++i) using namespace std; int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; } const double PI = 3.14159265358979323846; int main() { int l; cin >> l; printf("%.12f", double(l * l * l / 27)); return 0; }
#include <bits/stdc++.h> #define ll long long #define rep(i, n)(for i-0;i<(n);++i) using namespace std; int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; } const double PI = 3.14159265358979323846; int main() { int l; cin >> l; printf("%.6f", (double)l * l * l / 27); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 2, 63, 40], ["+", 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, 2, 3, 4, 0, 25]]
1
86
#include <math.h> #include <stdio.h> int main(void) { int l; scanf("%d", &l); double t = l / 3; double ans = (double)pow(t, 3); printf("%lf\n", ans); return 0; }
#include <math.h> #include <stdio.h> int main(void) { double l; scanf("%lf", &l); double t = l / 3; double ans = (double)pow(t, 3); printf("%lf\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
57
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double a = l / 3; double ans = a * a * a; cout << fixed << setprecision(12); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double l; cin >> l; long double a = l / 3; long double ans = a * a * a; cout << fixed << setprecision(12); cout << ans << endl; }
[["-", 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
50
#include <bits/stdc++.h> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int l; cin >> l; cout << fixed; cout.precision(15); double res = (l / 3); cout << pow(res, 3) << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int l; cin >> l; cout << fixed; cout.precision(15); double res = (l / 3.0); cout << pow(res, 3) << '\n'; return 0; }
[["-", 0, 43, 49, 50, 51, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 12, 13]]
1
70
#include <cmath> #include <iomanip> #include <iostream> int main() { int L; std::cin >> L; std::cout << std::fixed << std::setprecision(15) << std::pow(L / 3, 3) << std::endl; return 0; }
#include <cmath> #include <iomanip> #include <iostream> int main() { int L; std::cin >> L; std::cout << std::fixed << std::setprecision(8) << std::pow(L / 3.0, 3) << std::endl; return 0; }
[["-", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
54
#include <iostream> using ld = long double; int main() { int s; std::cin >> s; printf("%.12Lf", (ld)((s * s * s) / 27)); }
#include <iostream> using ld = long double; int main() { int s; std::cin >> s; printf("%.12Lf", (ld)s * s * s / 27); }
[["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
45
#include <bits/stdc++.h> using namespace std; int main(void) { int L; cin >> L; double x; x = L / 3; cout << fixed << setprecision(12) << (x * x * x) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long double L; cin >> L; long double x; x = L / 3; cout << fixed << setprecision(12) << (x * x * x) << endl; 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
51
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double s = (l / 3); printf("%.12f\n", s * s * s); }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; double s = l / 3; printf("%.12f\n", s * s * s); }
[["-", 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, 23, 0, 24], ["-", 8, 9, 0, 43, 49, 50, 51, 23, 0, 25]]
1
42
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int L; cin >> L; long double ans = (long double)((L * L * L) / 27); cout << fixed << setprecision(8) << ans << endl; }
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { long double L; cin >> L; long double ans = (long double)((L * L * L) / 27); cout << fixed << setprecision(8) << ans << endl; }
[["-", 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
60
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int L; cin >> L; double s = L / 3.0; cout << s * s * s; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int L; cin >> L; double s = L / 3.0; cout << fixed << s * s * s; }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
53
#include <stdio.h> int main(void) { int L; long double edge_size; long double result; scanf("%d", &L); edge_size = (long double)L / 3; result = edge_size * edge_size * edge_size; printf("%lf\n", result); return 0; }
#include <stdio.h> int main(void) { int L; long double edge_size; long double result; scanf("%d", &L); edge_size = (long double)L / 3; result = edge_size * edge_size * edge_size; printf("%Lf\n", result); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
61
l=int(input()) if l%3==0: k=l/3 print(k**3) else: n=int(l/3) m=l-2*n print(n*n*m)
l=int(input()) if l%3==0: k=l/3 print(k**3) else: n=l/3 m=l-2*n print(n*n*m)
[["-", 8, 196, 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
51
#include <bits/stdc++.h> using namespace std; int main() { cout.precision(15); int L; cin >> L; double z = L * L * L / 27; cout << z << endl; }
#include <bits/stdc++.h> using namespace std; int main() { cout.precision(15); int L; cin >> L; double z = L * L * L / 27.0; cout << z << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
43
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using pii = pair<int, int>; int main() { int l; cin >> l; double s = l / 3; double ans = s * s * s; cout << fixed << setprecision(10) << ans << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using pii = pair<int, int>; int main() { double l; cin >> l; double s = l / 3; double ans = s * s * s; 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
72
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main() { int l; cin >> l; double s = l / 3; cout << fixed << setprecision(7) << pow(s, 3) << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main() { double l; cin >> l; double s = l / 3; cout << fixed << setprecision(8) << pow(s, 3) << 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
58
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { double l; cin >> l; double x = l / 3; double ans = pow(x, 3); printf("%....
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { double l; cin >> l; double x = l / 3; double ans = pow(x, 3); printf("%....
[["-", 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
87
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; int h = L / 3; cout << fixed << setprecision(10) << h * h * h << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double h = L / 3; cout << fixed << setprecision(20) << h * h * h << 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 <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { long double l; scanf("%lf", &l); printf("%lf", l * l * l / 27); return 0; }
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int l; scanf("%d", &l); printf("%lf", (double)l * l * l / 27); return 0; }
[["-", 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], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 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, 1...
0
45
#include <bits/stdc++.h> #define pb push_back #define fr first #define sc second #define MOD 1000000007 #define len(x) x.size() #define min3(a, b, c) min(a, min(b, c)) #define max3(a, b, c) max(a, max(b, c)) #define all(v) v.begin(), v.end() #define f(i, a, n) for (int i = a; i < n; i++) using namespace std; typedef ve...
#include <bits/stdc++.h> #define pb push_back #define fr first #define sc second #define MOD 1000000007 #define len(x) x.size() #define min3(a, b, c) min(a, min(b, c)) #define max3(a, b, c) max(a, max(b, c)) #define all(v) v.begin(), v.end() #define f(i, a, n) for (int i = a; i < n; i++) using namespace std; typedef ve...
[["+", 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
191
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double ans = pow(L / 3, 3); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double L; cin >> L; double ans = pow(L / 3, 3); 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
37
l=int(input()) ans((l/3.0)**3)
l=int(input()) print((l/3.0)**3)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]]
5
18
# ABC159C # 縦,横,高さの合計が len である直方体のうち,体積が最大のものの体積はいくつか def f(len): print((len / 3) * 3) f(int(input()))
# ABC159C # 縦,横,高さの合計が len である直方体のうち,体積が最大のものの体積はいくつか def f(len): print((len / 3) ** 3) f(int(input()))
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 578]]
5
27
#include <stdio.h> int main(void) { int l; double s; scanf("%d", l); s = (double)l * l * l / 27; printf("%lf\n", s); return 0; }
#include <stdio.h> int main(void) { int l; double s; scanf("%d", &l); s = (double)l * l * l / 27; printf("%lf\n", s); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
50
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #include <iostream> #include <stdio.h> using namespace std; int main() { double L; cin >> L; printf("%.12f¥n", (double)L * L * L / 27); return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #include <iostream> #include <stdio.h> using namespace std; int main() { double L; cin >> L; printf("%.12f", (double)L * L * L / 27); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
52
a=int(input()) print((a/3)*3)
a=int(input()) print((a/3)**3)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 578]]
5
18
#include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main(void) { int L; cin >> L; long double V = L * L * L / 27; printf("%f\n", V); return 0; }
#include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main(void) { long double L; cin >> L; long double V = L * L * L / 27; printf("%Lf\n", V); 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], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
51
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int l; cin >> l; double L; L = l * 1.0; int len, ans; len = L / 3.0; ans = len * len * len; cout << fixed << setprecision(15) << ans << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int l; cin >> l; double L; L = l * 1.0; double len, ans; len = L / 3.0; ans = len * len * len; cout << fixed << setprecision(15) << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
66
#include <stdio.h> int main() { int l; double ans; scanf("%d", &l); ans = l * l * l / 27; printf("%.12lf\n", ans); return 0; }
#include <stdio.h> int main() { int l; double ans; scanf("%d", &l); ans = (double)l * l * l / 27; printf("%.12lf\n", ans); return 0; }
[["+", 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]]
0
47
#include <bits/stdc++.h> using ll = long long; using namespace std; void solve() { int l; cin >> l; double ans = l / 3; cout << pow(ans, 3) << "\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout.precision(10); cout << fixed; #ifdef _DEBUG freopen("input.txt"...
#include <bits/stdc++.h> using ll = long long; using namespace std; void solve() { double l; cin >> l; double ans = l / 3; cout << pow(ans, 3) << "\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout.precision(10); cout << fixed; #ifdef _DEBUG freopen("input.t...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
106
l = int(input()) a = l//3 v = a*a*a print(v)
l = int(input()) a = l/3 v = a*a*a print(v)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85]]
5
24
n = input() n = n/3 a = n**3 print(a)
n = int(input()) n = n/3 a = n**3 print(a)
[["+", 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
19
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { double L; cin >> L; double S = L / 3; cout << S * S * S << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { double L; cin >> L; double S = L / 3; cout << setprecision(700) << S * S * S << 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
42
#include <algorithm> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int l; cin >> l; cout << fixed << setprecision(15) << (float)(l * l * l / 27); }
#include <algorithm> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { double l; cin >> l; // cout<<ll; cout << fixed << setprecision(15) << (l * l * l) / 27; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 16, 12, 74, 39, 77, 39, 40], ["-", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25], ["-", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25], ["-", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
55
#include <stdio.h> int main(void) { int l; scanf("%d", &l); printf("%f", l * l * l / 3.0); return 0; }
#include <stdio.h> int main(void) { int l; scanf("%d", &l); printf("%f", l * l * l / 27.0); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
40
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); double z = (l / 3) * (l / 3) * (l / 3); System.out.format("%.12f", z); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double l = sc.nextDouble(); double z = (double)(l / 3) * (l / 3) * (l / 3); System.out.format("%.12f", z); } }
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 49, 200, 51, 16, 31, 16, 31, 74, 0, 24], ["+", 51, 16, 31, 16, 31, 74, 39, 511, 0, 512], ["+", 49, 200, 51, 16, 31, 1...
3
78
p (gets.chomp.to_i / 3)**3
p (gets.chomp.to_f / 3)**3
[["-", 0, 738, 31, 739, 0, 738, 31, 652, 735, 22], ["+", 0, 738, 31, 739, 0, 738, 31, 652, 735, 22]]
4
12
n=int(input()) print((n**3)/3)
n=int(input()) print((n**3)/27)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
18
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const int MOD = 1e9 + 7; using namespace std; //ループマクロ #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; 0 <= i; i--) #define ROP(i, n) for (int i = 1; i <= n; i++) /...
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const int MOD = 1e9 + 7; using namespace std; //ループマクロ #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; 0 <= i; i--) #define ROP(i, n) for (int i = 1; i <= n; i++) /...
[["-", 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
168
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { long l; cin >> l; cout << fixed << setprecision(9) << pow(l / 3, 3) << endl; }
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double l; cin >> l; cout << fixed << setprecision(9) << pow(l / 3, 3) << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
43
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; typedef pair<int, int> P; int main(void) { int l; cin >> l; double length = l / 3; cout << fixed << setprecision(20); cout << length * length * length << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; typedef pair<int, int> P; int main(void) { double l; cin >> l; double length = l / 3; cout << fixed << setprecision(20); cout << length * length * length << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
71
l = gets.strip.to_f puts (l/3.to_f)^3
l = gets.strip.to_f puts (l/3.to_f)**3
[["-", 0, 493, 0, 652, 3, 4, 0, 738, 17, 140], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 17, 578]]
4
17
#include <cmath> #include <iostream> using namespace std; int main() { float l; cin >> l; cout << pow(l / 3.0, 3.0); }
#include <cmath> #include <iostream> using namespace std; int main() { float l; cin >> l; cout << fixed << pow(l / 3.0, 3.0); }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
32
#include <bits/stdc++.h> using namespace std; int main() { int l; cin >> l; double d = (l / 3); d = d * d * d; cout << fixed << setprecision(12) << d << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double l; cin >> l; double d = (l / 3); d = d * d * d; cout << fixed << setprecision(12) << d << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
52
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(void) { int l; cin >> l; long double ans = l * l * l / 27; cout << setprecision(15) << ans << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(void) { int l; cin >> l; long double ans = l * l * l / 27.0; cout << setprecision(15) << ans << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
48
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(void) { int l; cin >> l; cout << setprecision(15) << l * l * l / 27 << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(void) { long double l; cin >> l; cout << setprecision(15) << l * l * l / 27 << endl; }
[["-", 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
42
// A.cpp #include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; ll gcd(ll a, ll b) { return b != 0 ? gcd(b, a % b) : a; } ll ...
// A.cpp #include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; ll gcd(ll a, ll b) { return b != 0 ? gcd(b, a % b) : a; } ll ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
140
# C - Maximum Volume # https://atcoder.jp/contests/abc159/tasks/abc159_c L = int(input()) center = (L/3) pre = center - 0.1 follow = center + 0.1 # print(pre) # print(center) # print(follow) print(pre*center*follow)
# C - Maximum Volume # https://atcoder.jp/contests/abc159/tasks/abc159_c L = int(input()) center = (L/3) pre = center - 0.1 follow = center + 0.1 # print(pre) # print(center) # print(follow) print(center*center*center)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
38