AcWing 612. 球的体积 - Java
原题链接
简单
作者:
KYCygni
,
2021-02-28 00:28:05
,
所有人可见
,
阅读 265
Java 代码
/**4 MDKJ
When decentralized blockchain protocols start displacing the centralized web services that
dominate the current Internet, we'll start to see real internet-based sovereignty.
The future Internet will be decentralized.
-- Olaf Carlson-Wee
*/
import java.util.Scanner;
public class Main
{
final static double PI = 3.14159;
public static void main (String[] args)
{
Scanner cin = new Scanner(System.in);
int r = cin.nextInt();
System.out.println("VOLUME = " + String.format("%.3f", 4 * PI * r * r * r /3.0));
}
}