Help me in solving CANDIVIDE problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
    int t;
    cin >> t;
    while(t--){
        int N;
        cin >> N;
        if(N/3 >= 1){
            cout << "Yes" << endl;
        }
        else{
            cout << "No" << endl;
        }
    }
	return 0;
}

Problem Link: CANDIVIDE Problem - CodeChef

@sidsur47
U have to check for if N%3==0 or not
if its 0 then u can divide else u can’t .

1 Like

Thanks for rectifying :yellow_heart: