Sir doubt in problem

sir in codecheff i am trying easy question but idk why code is not submiting idk which test case is failing can i get plz

this link

and my code

#include

using namespace std;

int main()

{

int total_iteration,queue_size;

cin>>total_iteration;

int price,bank;

for(int i=1;i<=total_iteration;i++)

{

    int flag=0;

    cin>>queue_size;

    bank=0;

    for(int j=1;j<=queue_size;j++)

    {


        cin>>price;

        if(price!=5 and price!=10 and price!=15)

        {

            flag=1;

        }

        int temp=price-5;

        bank=bank-temp;

        if(bank<0)

        {



            flag=1;

        }



        bank=bank+price;

    }

    if(flag==1)


    {

        cout<<"NO"<<endl;

    }

    else


    {


        cout<<"YES"<<endl;

    }





}

return 0;

}

//sirr plz i need help

@tejasddongare bro for these questions refer to the editorial on that site and ask in their discussion forum.
just close this doubt