Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ll long long
#define optimize() ios_base :: sync_with_stdio (0); cin.tie(0); cout.tie(0);
int main()
{
optimize();
int x = 0, y = 0;
int mxx = -1000, mnx = 1000;
int mxy = -1000, mny = 1000;
int t; cin>>t; while(t--)
{
cin>>x>>y;
mxx = max(mxx,x);
mnx = min(mnx,x);
mxy = max(mxy,y);
mny = min(mny,y);
}
int p,q; cin>>p>>q;
if((p>=mnx && p<=mxx) && (q>=mny && q<=mxy)) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1145 Nobita's Love for Shizuka
- Contest
- LU IUJPC : Sylhet Division 2024
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-12-09 05:47:06
- Judged At
- 2024-12-09 05:47:06
- Judged By
- Score
- 24
- Total Time
- 2ms
- Peak Memory
- 540.0 KiB