7 solutions

  • 5
    @ 2023-9-15 21:22:50
    #include<iomanip>
    #include<iostream>
    using namespace std;
    int main(){
    	double r,v;
    	cin>>r;
    	v=4.0/3*3.14*r*r*r;
    	cout<<fixed<<setprecision(2)<<v;
    	return 0;
    }
    
    • 3
      @ 2023-9-16 21:54:46
      #include <bits/stdc++.h>
      using namespace std;
      long double r,v;
      signed main(){
      	cin>>r;
      	v=4.0/3*3.14*r*r*r;
      	cout<<fixed<<setprecision(2)<<v;
      	return 0;
      }
      
      • 1
        @ 2023-11-22 16:32:43
        #include <bits/stdc++.h>
        using namespace std;
        int main(int argc, char **argv){
        	double r,v,pi = 3.14;
        	cin >> r;
        	v = 4.0 / 3.0 * 3.14 * r * r*r;
        	printf("%.2f",v);
        	return 0;
        }
        
        • 0
          @ 2023-9-15 21:26:49

          给C23wangzishu好评

          • 0
            @ 2023-9-10 16:35:33
            #include <set>
            #include <ios>
            #include <list>
            #include <cmath>
            #include <ctime>
            #include <queue>
            #include <deque>
            #include <stack>
            #include <vector>
            #include <bitset>
            #include <cctype>
            #include <cerrno>
            #include <cwchar>
            #include <cstdio>
            #include <fenv.h>
            #include <iosfwd>
            #include <string>
            #include <limits>
            #include <math.h>
            #include <cstdlib>
            #include <iomanip>
            #include <clocale>
            #include <complex>
            #include <cstring>
            #include <cstring>
            #include <cwctype>
            #include <istream>
            #include <ostream>
            #include <sstream>
            #include <fstream>
            #include <utility>
            #include <stdio.h>
            #include <iostream>
            #include <stdint.h>
            #include <string.h>
            #include <tgmath.h>
            #include <complex.h>
            #include <algorithm>
            #include <exception>
            #include <stdbool.h>
            #include <stdexcept>
            #include <streambuf>
            #include <functional>
            #include <inttypes.h>
            #include <bits/stdc++.h>
            using namespace std;
            int main(){
            	double r,v;
            	cin>>r;
            	v=4*3.14*r*r*r;
            	cout << fixed << setprecision(2)<<v/3;
            	return 0;
            }
            
            
            • -1
              @ 2024-7-9 17:08:42
              #include<iostream>
              #include<iomanip>
              using namespace std;
              int main(){
              	double r,v;
              	cin>>r;
              	v=4.0/3*3.14*r*r*r;    
                  cout<<fixed<<setprecision(2)<<v;
                  return 0;
              }
              
              • -1
                @ 2024-7-8 19:41:23

                😄 #include using namespace std; int main(){ double r; cin>>r; printf("%.2f",4.00/3.003.14rrr); return 0; }

                • 1

                Information

                ID
                516
                Time
                1000ms
                Memory
                256MiB
                Difficulty
                5
                Tags
                # Submissions
                361
                Accepted
                137
                Uploaded By