백준 #24183번 Affischutskicket

jhj·2024년 2월 14일

백준 JAVA

목록 보기
295/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		double c = sc.nextDouble();
		
		double total = (a / 1000000) * 2 * 229 * 324 + (b / 1000000) * 2 * 297 * 420 + (c / 1000000) * 210 * 297;
		
		System.out.println(String.format("%.6f", total));
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글