Help me in solving ASSIGNMNT problem

My issue

solution

My code

#include <iostream>
using namespace std;

int main() {
	int t;
	cin<< t;
	while(t--){
	    int X,Y,Z;
	    cin>> X>> Y>> Z;
	    if((X*Y)<=Z*24*60) cout<<"YES";
	    else cout<<"NO";
	    cout<<endl;
	    
	    
	    
	    
	}
	return 0;
}

Problem Link: ASSIGNMNT Problem - CodeChef

@anon37764799
Correct condition would be

x*y<=z*24*60
2 Likes

Thankyou

include
using namespace std;

int main() {
int t;
std::cin >> t;
while (t–){
int x,y,z;
cin>>x>>y>>z;
if(xy>=(z24*60)){
std::cout << β€œYes” << std::endl;
}
else;
std::cout << β€œNO” << std::endl;
}
return 0;
}

1 Like