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

[백준/Java] 34921번 덕후

by 현장 2025. 12. 23.

-Code

import java.util.Scanner;

public class BOJ34921 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int t = sc.nextInt();
        int answer = 10 + 2 * (25 - a + t);

        System.out.println(Math.max(answer, 0));
    }
}