/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 332.0 KiB
#2 Accepted 2ms 368.0 KiB
#3 Accepted 1ms 332.0 KiB
#4 Accepted 1ms 540.0 KiB
#5 Accepted 2ms 492.0 KiB
#6 Wrong Answer 1ms 540.0 KiB
#7 Accepted 1ms 540.0 KiB
#8 Accepted 2ms 488.0 KiB
#9 Wrong Answer 2ms 500.0 KiB

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