Solution for CCC '11 J1 - Which Alien? in Java 8


Nov. 5, 2019 1.305688 seconds Java 8
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        
        if(a <= 2 && b <= 3){
            System.out.println("GraemeMercurian");
        }
        
        if(a <= 6 && b >= 2){
            System.out.println("VladSaturnian"); 
        }
        
        if(a >= 3 && b <= 4){
            System.out.println("TroyMartian");
        }
    }
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.