The Preparations: SUPCHEF

Problem link: https://www.codechef.com/CU1PP0005/problems/SUPCHEF

Problem code: SUPCHEF

Chef has an exam which will start exactly MM minutes from now. However, instead of preparing for his exam, Chef started watching Season-11 of Superchef. Season-11 has NN episodes, and the duration of each episode is KK minutes.

Will Chef be able to finish watching Season-11 strictly before the exam starts?

Note:Note: Please read the explanations of the sample test cases carefully.

Solution:

#include <iostream>
using namespace std;

int main() {
  // your code goes here
  int cases,M,N,K,L;
  cin>>cases;
  for(int i=0;i<cases;i++){
      cin>>M>>N>>K;
      L=N*K;
      if(L<M){
          cout<<"YES"<<endl;
      }
      else{
          cout<<"NO"<<endl;
      }
  }
  return 0;
}
See also  Gold Mining