Problem Link: CodeChef: Practical coding for everyone
Learning course: C++ for problem solving - 2
My code
// Update the code below to solve the problem
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int N;
cin >> N;
int A[N];
int weekend=8;
for(int i=0; i < N; i++)
{
cin >> A[i];
if(A[i]%7 !=6 && A[i]%7 !=0)
{
Weekend++;
}
}
cout<<Weekend<<endl;
}
}