Q) In problem we have to distribute candy equally among 3 friends either there will be conflict ..
I tried to submit this code on codechef but it's showing some case failure what might be they and how to resolve that.
#include <iostream>
using namespace std;
int main() {
    int t;
    cin >> t;
    for (int i = t; i >=0; i--) {
        int n = 0, nl = 0, n5 = 0;
        cin >> n;
        nl = n / 3;
        n5 = n1 * 3;
        if (n5 == n)
            cout << "YES";
        else
            cout << "NO";
    }
    return 0;
}