SnIPPETsX
SnIPPETsX

SnIPPETsX › #define ll long long

#define ll long long

C++ · updated Oct 10, 2026 · 44 lines

main.cpp

#include<bits/stdc++.h>

#define ll long long
#define F first
#define S second
#define pb push_back

using namespace std;




int main(){
    ios_base::sync_with_stdio(false) , cin.tie(0);


    ll T = 1;
     cin >> T;
    while(T--){
        ll n;
        cin>>n;
        if(n%30==0 && n%26==0 && n%23==0){
            cout<<"BEST\n";
        }else if(n%30==0 && n%26==0){
            cout<<"GREAT\n";
        }else if(n%30==0){
            cout<<"GOOD\n";
        }else
         cout<<"NORMAL\n";


    }


    return 0;


}


/*


 */

Run this C++ snippet

Open this snippet on SnIPPETsX to run the C++ code in your browser, edit it together with others in real time, or fork it into your own copy. No install or account is needed.