#include <iostream>
using namespace std;
int main(){
int a, b, c, x, y, z, s;
cin >> a >> b >> c >> x >> y >> z >> s;
a*x + b*y + c*z <= s ? cout << "YES" : cout << "NO";
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main(){
int a, b, c, x, y, z, s;
cin >> a >> b >> c >> x >> y >> z >> s;
a*x + b*y + c*z <= s ? cout << "YES" : cout << "NO";
}