컴공 공부/백준

[백준알고리즘] 3053번 택시기하학 자바

무무뭉? 2021. 1. 29. 12:20

import java.io.IOException;
import java.util.Scanner;

class Main{
	public static void main(String args[]) throws IOException{
		try (Scanner sc = new Scanner(System.in)) {
			int a= sc.nextInt();
			System.out.println(String.format("%.6f", Math.PI *a*a));
			System.out.println(String.format("%.6f", a*a*2.0));
		}
				
	}
}