본문 바로가기
Beakjoon&프로그래머스/Java

[백준/Java] 24086번 Affischutskicket

by 현장 2022. 4. 15.

-Code

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] paper = {229 * 324, 297 * 420, 210 * 297};
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        double answer = ((paper[0] * a + paper[1] * b) * 2 + paper[2] * c) * 1e-6;
        System.out.println(String.format("%.6f", answer));

    }
}