-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaxiGeometry.java
More file actions
19 lines (14 loc) · 540 Bytes
/
Copy pathTaxiGeometry.java
File metadata and controls
19 lines (14 loc) · 540 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package algorithm.baek.etc;
import algorithm.TestCase;
import java.io.*;
import java.text.ParseException;
public class TaxiGeometry implements TestCase {
public static final double PI = 3.14159265358979323846;
@Override
public void test() throws ParseException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
double R = Double.parseDouble(br.readLine());
System.out.println(R * R * Math.PI);
System.out.println(2 * R * R);
}
}