1 solutions

  • 0
    @ 2025-11-5 19:41:24

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        long double r, v, pi = acosl(-1.0);
        while (scanf("%Lf", &r) != EOF)
        {
            v = r * r * r * pi * 4 / 3.0;
            printf("%.3Lf\n", v);
        }
        return 0;
    }
    
    
    • 1

    Information

    ID
    19548
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By