백준 #16486번 운동장 한 바퀴

jhj·2024년 2월 12일

백준 JAVA

목록 보기
241/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int d1 = sc.nextInt();
		int d2 = sc.nextInt();
		double total = d1 * 2 + d2 * 2 * 3.141592;
		
		System.out.println(total);
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글