알고리즘

[알고리즘] 백준 6778 - Which Alien? (C++)

blueberrysoda 2024. 11. 12. 23:50

[문제 링크] : https://www.acmicpc.net/problem/6778

#include <iostream>
using namespace std;

int main(){
    int A, B;
    cin >> A >> B;

    if(A >= 3 && B <= 4){
        cout << "TroyMartian\n";
    }
    if(A <= 6 && B >= 2){
        cout << "VladSaturnian\n";
    }
    if(A <= 2 && B <= 3){
        cout << "GraemeMercurian\n";
    }
    return 0;
}