# 总结：

#include<bits/stdc++.h>
//typedef long long ll;
//#define ull       unsigned long long
#define int       long long
#define F           first
#define S           second
#define endl        "\n"//<<flush
#define lowbit(x)   (x&(-x))
#define ferma(a,b)  pow(a,b-2)
#define pb          push_back
#define mp          make_pair
#define all(x)      x.begin(),x.end()
#define memset(a,b) memset(a,b,sizeof(a));
#define IOS         ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
using namespace std;
const double PI=acos(-1.0);
const int inf=0x3f3f3f3f;
const int MAXN=0x7fffffff;
const long long INF = 0x3f3f3f3f3f3f3f3fLL;
void file()
{
#ifdef ONLINE_JUDGE
#else
freopen("cin.txt","r",stdin);
//  freopen("cout.txt","w",stdout);
#endif
}const int N=1e6+5;
vector<pair<int,int> >vec;
signed main()
{
IOS;
//file();
int n,x1,x2,k,b,flag=0;
cin>>n>>x1>>x2;
for(int i=0;i<n;i++)
{
cin>>k>>b;
vec.pb(mp(k*x1+b,k*x2+b));
}
sort(all(vec),less<pair<int,int> >());
for(int i=1;i<n;i++)
{
if(vec[i].F>=vec[0].F&&vec[i].S>=vec[0].S)
vec[0].F=vec[i].F,vec[0].S=vec[i].S;
else
flag=1;
}
cout<<(flag?"YES":"NO")<<endl;
return 0;
}



©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客