Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- float f(float x)
- {
- float a=(int)(x*100+0.5);
- return (float)a / 100;
- }
- int main() {
- // your code goes here
- int t;
- cin>>t;
- while(t--){
- float k1,k2,k3,v;
- cin>>k1>>k2>>k3>>v;
- v*=k1;
- v*=k2;
- v*=k3;
- v= 100/v;
- float y=f(v);
- int c=y*100;
- if(c<958){
- cout<<"YES\n";
- }
- else{
- cout<<"NO\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment