My issue
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int a,b,c,d,k;
cin>>a>>b>>c>>d>>k;
int sum;
sum=a+b+c+d;
if(sum%k==0){
cout<<"YES"<<endl;
}else{
cout<<"NO\n";
}
}
return 0;
}
Problem Link: CodeChef: Practical coding for everyone