알고리즘

[알고리즘] 백준 4562 - No Brainer (C++)

blueberrysoda 2024. 10. 22. 23:56

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

#include <iostream>
using namespace std;

int main(){
    int N;
    cin >> N;

    int a, b;
    for(int i=0; i<N; i++){
        cin >> a >> b;
        if(a < b){
            cout << "NO BRAINS\n"; 
        }
        else{
            cout << "MMM BRAINS\n";
        }
    }
    return 0;
}