题解
2024-07-15 16:53:39
发布于:广东
12阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
int a,b;
int x1,y1,x2,y2,x3,y3;
cin>>a>>b;
cin >> x1 >> y1;
cin >> x2 >> y2;
cin >> x3 >> y3;
if(b / y1 * x1 >= a)
cout << "YES";
else if(b / y2 * x2 >= a)
cout << "YES";
else if(b / y3 * x3 >= a)
cout << "YES";
else
cout << "NO";
return 0;
}
这里空空如也
有帮助,赞一个