Saleh127

cc lostwkind

May 30th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define pi acos(-1)
  6. int main()
  7. {
  8. ll a,c,d,e,f,i,j,k,l;
  9. test
  10. {
  11. cin>>a>>c>>d>>e>>f;
  12. cin>>i;
  13. j=a*i+c*i+d*i+e*i+f*i;
  14. if(j<=120) printf("No\n");
  15. else printf("Yes\n");
  16. }
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment