백준 #28927번 Киноманы

jhj·2024년 2월 4일

백준 JAVA

목록 보기
131/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int t1 = sc.nextInt();
		int e1 = sc.nextInt();
		int f1 = sc.nextInt();
		
		int t2 = sc.nextInt();
		int e2 = sc.nextInt();
		int f2 = sc.nextInt();
		
		int total1 = t1 * 3 + e1 * 20 + f1 * 120;
		int total2 = t2 * 3 + e2 * 20 + f2 * 120;
		
		if(total1 > total2) {
			System.out.println("Max");
		}else if(total1 < total2) {
			System.out.println("Mel");
		}else if(total1 == total2){
			System.out.println("Draw");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글