题解 | #牛牛的球#
牛牛的球
http://www.nowcoder.com/practice/203ca3114f8845a9bbd673bae6c5dd2b
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); System.out.printf("%.2f", (double) num * (double) num * (double) num * 3.14 * 4.0 / 3.0); } }