This is my approach to the problem, but apparently the 2nd test case is wrong. Any hint or assistance will be appreciated!!
#include <iostream>
#include<bits/stdc++.h>
#include<cmath>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
double x,y,z,d;
cin>>x>>y>>z>>d;
double l=(x+y+z)/d ;
cout<< ceil(l) <<endl;
}
return 0;
}