pranjal1805

Untitled

Apr 2nd, 2021
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4.    float t,k1,k2,k3,v;
  5.    float speed,time;
  6.    cin>>t;
  7.    for (int i=0;i<t;i++)
  8.    {
  9. cin>>k1>>k2>>k3>>v;
  10. speed=k1*k2*k3*v;
  11. time=(float)100/speed;
  12.  
  13.  
  14.    
  15.    if (time>9.575)
  16.         {cout<<"NO"<<endl;}
  17.     else
  18.         {cout<<"YES"<<endl;}
  19.    
  20.  
  21.    }    
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment