Describe to you the side length of the triangle, pi=3.1415926, the circumscribed circle area of the triangle.
-
- Input
-
- only one set of test data the first line of input an integer n (1<n<1000) indicates the next to enter n edge length m (1.0<=m<1000.0)
-
- Output
-
- outputs the circumscribed circle area of each positive triangle, preserving two decimal places, each of which occupies a single row.
-
- Sample input
-
-
51132262155
-
- Sample output
-
1.05176.98506.844025.4325158.92
1 ImportJava.math.BigInteger;2 Importjava.util.Arrays;3 ImportJava.util.Scanner;4 5 Public classMain {6 Public Static voidMain (string[] args) {7Scanner scanner=NewScanner (system.in);8 intT;9 DoubleN;Ten DoubleMianji; One Doublepi=3.1415926; A -t=scanner.nextint (); - while(true){ the if(t==0) - Break; -t--; - +n=scanner.nextdouble (); -Mianji=n*n*pi/3; +System.out.printf ("%.2f\n", Mianji); A } at } -}
The circumscribed circle area of a positive triangle