import java.util.Scanner;
import java.text.DecimalFormat;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
double r=sc.nextDouble();
double f=4/3d;
double x= 3.1415927;
double v=f*(r*r*r)*x;
DecimalFormat df2=new DecimalFormat("###.000");
System.out.println(df2.format(v));
}
}
}
杭电 2002 ( 计算球体积 ) java
最新推荐文章于 2022-06-26 09:49:33 发布