백준 주사위 세개

    백준 2480 (주사위 세개)

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a==b && b==c && c==a) { // 같은 눈이 3개일 경우 System.out.println(10000 + a * 1000); } else if(a==b || b==c)..