题解 | 牛牛的球
牛牛的球
https://www.nowcoder.com/practice/203ca3114f8845a9bbd673bae6c5dd2b
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int r = in.nextInt();
double cir = (double) 4/3 * 3.14 * Math.pow(r,3);
System.out.printf("%.2f",cir);
}
}
查看24道真题和解析