My issue
why am I getting wrong output here?
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
long long int X1,X2,X3,X4,X5,X6;
cin>>X1>>X2>>X3>>X4>>X5>>X6;
long long int N;
cin>>N;
long long int cost=((X1+X2+X3+X4+X5+X6)*0.5);
int k=cost*N;
cout<<k<<endl;
}
return 0;
}
Learning course: Prepare for your DSA interviews
Problem Link: Color the Cube Practice Problem in Prepare for your DSA interviews - CodeChef