✏️ 문제풀이/백준

[백준/Java] 2480번 :: 주사위

bono-hye 2023. 10. 2. 01:14

import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		int result; 
		
		if (a == b && b == c && a == c)
			result = 10000 + a * 1000;
		else if (a == b || a == c)
			result = 1000 + a * 100;
		else if (b == c)
			result = 1000 + b * 100;
		else
			result = Math.max(Math.max(a, b), c) * 100;
		
		System.out.print(result);
	}
}