TEST CASE MYSTERY - THREEBOX problem

THE THREE BOX PROBELM

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;
}

@not_an_iitian7
for test case
1
2 2 2 3
your output is
2
but the correct answer will be
3

1 Like

oh got it. Thanks a bunch :saluting_face::bear:

1 Like